提交 108f318d 编写于 作者: M Michael Niedermayer 提交者: Anton Khirnov

h264: don't be so picky on decoding pps in extradata.

Fixes issue2517
Signed-off-by: NMichael Niedermayer <michaelni@gmx.at>
Signed-off-by: NAnton Khirnov <anton@khirnov.net>
上级 3de33b00
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册