mxfdec: Check url_feof() in mxf_read_local_tags()

This fixes the infinite loop with zzuf2.mxf
pull/2/head
Tomas Härdin 13 years ago
parent 5e5e69d078
commit 2116e4ba91
  1. 2
      libavformat/mxfdec.c

@ -1437,7 +1437,7 @@ static int mxf_read_local_tags(MXFContext *mxf, KLVPacket *klv, MXFMetadataReadF
if (!ctx) if (!ctx)
return -1; return -1;
while (avio_tell(pb) + 4 < klv_end) { while (avio_tell(pb) + 4 < klv_end && !url_feof(pb)) {
int tag = avio_rb16(pb); int tag = avio_rb16(pb);
int size = avio_rb16(pb); /* KLV specified by 0x53 */ int size = avio_rb16(pb); /* KLV specified by 0x53 */
uint64_t next = avio_tell(pb) + size; uint64_t next = avio_tell(pb) + size;

Loading…
Cancel
Save