Revision 66e5b1df libavformat/gxf.c
libavformat/gxf.c | ||
---|---|---|
368 | 368 |
|
369 | 369 |
#define READ_ONE() \ |
370 | 370 |
{ \ |
371 |
if (!max_interval-- || url_feof(pb)) \
|
|
371 |
if (!max_interval-- || pb->eof_reached) \
|
|
372 | 372 |
goto out; \ |
373 | 373 |
tmp = tmp << 8 | avio_r8(pb); \ |
374 | 374 |
} |
... | ... | |
422 | 422 |
AVIOContext *pb = s->pb; |
423 | 423 |
GXFPktType pkt_type; |
424 | 424 |
int pkt_len; |
425 |
while (!url_feof(pb)) {
|
|
425 |
while (!pb->eof_reached) {
|
|
426 | 426 |
AVStream *st; |
427 | 427 |
int track_type, track_id, ret; |
428 | 428 |
int field_nr, field_info, skip = 0; |
429 | 429 |
int stream_index; |
430 | 430 |
if (!parse_packet_header(pb, &pkt_type, &pkt_len)) { |
431 |
if (!url_feof(pb))
|
|
431 |
if (!pb->eof_reached)
|
|
432 | 432 |
av_log(s, AV_LOG_ERROR, "sync lost\n"); |
433 | 433 |
return -1; |
434 | 434 |
} |
Also available in: Unified diff