[FFmpeg-cvslog] lavf/dss: Do not fail randomly if dss_sp input contains 0xff.

Carl Eugen Hoyos git at videolan.org
Thu Jan 12 16:05:59 EET 2017


ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Thu Jan 12 14:12:35 2017 +0100| [f31bac596f93e02b49d04733e57770e183a3d0c8] | committer: Carl Eugen Hoyos

lavf/dss: Do not fail randomly if dss_sp input contains 0xff.

Fixes decoding the sample from ticket #6072 with ffmpeg.

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

 libavformat/dss.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/libavformat/dss.c b/libavformat/dss.c
index cbf6e17..083eb4a 100644
--- a/libavformat/dss.c
+++ b/libavformat/dss.c
@@ -265,9 +265,6 @@ static int dss_sp_read_packet(AVFormatContext *s, AVPacket *pkt)
         goto error_eof;
     }
 
-    if (pkt->data[0] == 0xff)
-        return AVERROR_INVALIDDATA;
-
     return pkt->size;
 
 error_eof:



More information about the ffmpeg-cvslog mailing list