Mercurial > libavformat.hg
comparison mpeg.c @ 1443:404048ea11bc libavformat
Replace most of the %lld and %llx by their (cleaner) PRI*64 counterparts.
patch by Steve Lhomme, slhomme divxcorp com
| author | diego |
|---|---|
| date | Wed, 01 Nov 2006 22:39:58 +0000 |
| parents | 3b00fb8ef8e4 |
| children | 5e7460a2f209 |
comparison
equal
deleted
inserted
replaced
| 1442:c2b748de9b35 | 1443:404048ea11bc |
|---|---|
| 1451 redo: | 1451 redo: |
| 1452 /* next start code (should be immediately after) */ | 1452 /* next start code (should be immediately after) */ |
| 1453 m->header_state = 0xff; | 1453 m->header_state = 0xff; |
| 1454 size = MAX_SYNC_SIZE; | 1454 size = MAX_SYNC_SIZE; |
| 1455 startcode = find_next_start_code(&s->pb, &size, &m->header_state); | 1455 startcode = find_next_start_code(&s->pb, &size, &m->header_state); |
| 1456 //printf("startcode=%x pos=0x%Lx\n", startcode, url_ftell(&s->pb)); | 1456 //printf("startcode=%x pos=0x%"PRIx64"\n", startcode, url_ftell(&s->pb)); |
| 1457 if (startcode < 0) | 1457 if (startcode < 0) |
| 1458 return AVERROR_IO; | 1458 return AVERROR_IO; |
| 1459 if (startcode == PACK_START_CODE) | 1459 if (startcode == PACK_START_CODE) |
| 1460 goto redo; | 1460 goto redo; |
| 1461 if (startcode == SYSTEM_HEADER_START_CODE) | 1461 if (startcode == SYSTEM_HEADER_START_CODE) |
| 1707 int len, startcode; | 1707 int len, startcode; |
| 1708 int64_t pos, pts, dts; | 1708 int64_t pos, pts, dts; |
| 1709 | 1709 |
| 1710 pos = *ppos; | 1710 pos = *ppos; |
| 1711 #ifdef DEBUG_SEEK | 1711 #ifdef DEBUG_SEEK |
| 1712 printf("read_dts: pos=0x%llx next=%d -> ", pos, find_next); | 1712 printf("read_dts: pos=0x%"PRIx64" next=%d -> ", pos, find_next); |
| 1713 #endif | 1713 #endif |
| 1714 url_fseek(&s->pb, pos, SEEK_SET); | 1714 url_fseek(&s->pb, pos, SEEK_SET); |
| 1715 for(;;) { | 1715 for(;;) { |
| 1716 len = mpegps_read_pes_header(s, &pos, &startcode, &pts, &dts); | 1716 len = mpegps_read_pes_header(s, &pos, &startcode, &pts, &dts); |
| 1717 if (len < 0) { | 1717 if (len < 0) { |
| 1725 break; | 1725 break; |
| 1726 } | 1726 } |
| 1727 url_fskip(&s->pb, len); | 1727 url_fskip(&s->pb, len); |
| 1728 } | 1728 } |
| 1729 #ifdef DEBUG_SEEK | 1729 #ifdef DEBUG_SEEK |
| 1730 printf("pos=0x%llx dts=0x%llx %0.3f\n", pos, dts, dts / 90000.0); | 1730 printf("pos=0x%"PRIx64" dts=0x%"PRIx64" %0.3f\n", pos, dts, dts / 90000.0); |
| 1731 #endif | 1731 #endif |
| 1732 *ppos = pos; | 1732 *ppos = pos; |
| 1733 return dts; | 1733 return dts; |
| 1734 } | 1734 } |
| 1735 | 1735 |
