From 108f318d908c552d88bc7570515e4ddb9ea45e3d Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 1 Mar 2011 15:59:00 +0100 Subject: [PATCH] h264: don't be so picky on decoding pps in extradata. Fixes issue2517 Signed-off-by: Michael Niedermayer Signed-off-by: Anton Khirnov --- libavcodec/h264.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/h264.c b/libavcodec/h264.c index e1fcb62a7b..276d6e6d6c 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -995,7 +995,7 @@ int ff_h264_decode_extradata(H264Context *h) cnt = *(p++); // Number of pps for (i = 0; i < cnt; i++) { nalsize = AV_RB16(p) + 2; - if(decode_nal_units(h, p, nalsize) != nalsize) { + if (decode_nal_units(h, p, nalsize) < 0) { av_log(avctx, AV_LOG_ERROR, "Decoding pps %d from avcC failed\n", i); return -1; }