[FFmpeg-cvslog] asfdec: remove "ignoring invalid packet_obj_size" code

Michael Niedermayer git at videolan.org
Tue Jul 30 03:50:30 CEST 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Jul 30 03:13:30 2013 +0200| [6df20d0d350793b89c3ff541cf453ae69cf99beb] | committer: Michael Niedermayer

asfdec: remove "ignoring invalid packet_obj_size" code

The code is no longer needed

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6df20d0d350793b89c3ff541cf453ae69cf99beb
---

 libavformat/asfdec.c |    7 -------
 1 file changed, 7 deletions(-)

diff --git a/libavformat/asfdec.c b/libavformat/asfdec.c
index 8421081..f34a141 100644
--- a/libavformat/asfdec.c
+++ b/libavformat/asfdec.c
@@ -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?



More information about the ffmpeg-cvslog mailing list