Commit 6e77feb2 authored by Michael Niedermayer's avatar Michael Niedermayer

Dont be so picky on decoding pps in extradata.

Fixes issue2517
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 116758a3
......@@ -986,7 +986,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% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment