[FFmpeg-devel] [PATCH]lavf/dss: Do not fail randomly if input contains 0xff

Carl Eugen Hoyos cehoyos at ag.or.at
Thu Jan 12 15:15:55 EET 2017


Hi!

Please correct me if I miss something but I don't see why 
the dss demuxer tests the content of dss_sp frames.

Please comment, Carl Eugen
-------------- next part --------------
From 5b975c20361d80ac7f889f05c23efd447873683f Mon Sep 17 00:00:00 2001
From: Carl Eugen Hoyos <cehoyos at ag.or.at>
Date: Thu, 12 Jan 2017 14:12:35 +0100
Subject: [PATCH] lavf/dss: Do not fail randomly if the input contains 0xff.

Fixes decoding the sample from ticket #6072 with ffmpeg.
---
 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:
-- 
1.7.10.4



More information about the ffmpeg-devel mailing list