[FFmpeg-devel] [PATCH] avcodec/h264_parse: Treat escaped and unescaped decoding error equal in decode_extradata_ps_mp4()

Michael Niedermayer michael at niedermayer.cc
Sat Nov 25 23:49:09 EET 2017


Fixes: lorex.mp4

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
---
 libavcodec/h264_parse.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/libavcodec/h264_parse.c b/libavcodec/h264_parse.c
index a7c71d9bbb..9216d0bdbd 100644
--- a/libavcodec/h264_parse.c
+++ b/libavcodec/h264_parse.c
@@ -427,8 +427,6 @@ static int decode_extradata_ps_mp4(const uint8_t *buf, int buf_size, H264ParamSe
 
         ret = decode_extradata_ps(escaped_buf, escaped_buf_size, ps, 1, logctx);
         av_freep(&escaped_buf);
-        if (ret < 0)
-            return ret;
     }
 
     return 0;
-- 
2.15.0



More information about the ffmpeg-devel mailing list