lavf/dss: Do not fail randomly if dss_sp input contains 0xff.
authorCarl Eugen Hoyos <cehoyos@ag.or.at>
Thu, 12 Jan 2017 13:12:35 +0000 (14:12 +0100)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Thu, 12 Jan 2017 14:02:42 +0000 (15:02 +0100)
Fixes decoding the sample from ticket #6072 with ffmpeg.

libavformat/dss.c

index cbf6e17..083eb4a 100644 (file)
@@ -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: