asfdec: remove "ignoring invalid packet_obj_size" code
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 30 Jul 2013 01:13:30 +0000 (03:13 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 30 Jul 2013 01:19:39 +0000 (03:19 +0200)
The code is no longer needed

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/asfdec.c

index 8421081..f34a141 100644 (file)
@@ -1167,13 +1167,6 @@ static int asf_parse_packet(AVFormatContext *s, AVIOContext *pb, AVPacket *pkt)
             }
             asf->packet_multi_size -= asf_st->packet_obj_size;
         }
-        if (asf_st->frag_offset + asf->packet_frag_size <= asf_st->pkt.size &&
-            asf_st->frag_offset + asf->packet_frag_size > asf_st->packet_obj_size) {
-            av_log(s, AV_LOG_INFO, "ignoring invalid packet_obj_size (%d %d %d %d)\n",
-                   asf_st->frag_offset, asf->packet_frag_size,
-                   asf_st->packet_obj_size, asf_st->pkt.size);
-            asf_st->packet_obj_size = asf_st->pkt.size;
-        }
 
         if (asf_st->pkt.size != asf_st->packet_obj_size ||
             // FIXME is this condition sufficient?