[FFmpeg-cvslog] avformat/asfdec: ignore packet_segments
Michael Niedermayer
git at videolan.org
Sun Nov 24 20:50:55 CET 2013
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Nov 24 19:14:49 2013 +0100| [e78d0381874f8449274b261c012f4964f7ede652] | committer: Michael Niedermayer
avformat/asfdec: ignore packet_segments
Fixes Ticket1708
Based on patch by Alberto Delmás
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e78d0381874f8449274b261c012f4964f7ede652
---
libavformat/asfdec.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/libavformat/asfdec.c b/libavformat/asfdec.c
index e4df32f..a9b0326 100644
--- a/libavformat/asfdec.c
+++ b/libavformat/asfdec.c
@@ -1122,8 +1122,7 @@ static int asf_parse_packet(AVFormatContext *s, AVIOContext *pb, AVPacket *pkt)
if (url_feof(pb))
return AVERROR_EOF;
- if (asf->packet_size_left < FRAME_HEADER_SIZE ||
- asf->packet_segments < 1) {
+ if (asf->packet_size_left < FRAME_HEADER_SIZE) {
int ret = asf->packet_size_left + asf->packet_padsize;
assert(ret >= 0);
More information about the ffmpeg-cvslog
mailing list