Commit e8f2c0ca authored by Michael Niedermayer's avatar Michael Niedermayer

h264: print the pps_id when its invalid.

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 6cabb679
...@@ -2912,7 +2912,7 @@ static int decode_slice_header(H264Context *h, H264Context *h0) ...@@ -2912,7 +2912,7 @@ static int decode_slice_header(H264Context *h, H264Context *h0)
pps_id = get_ue_golomb(&s->gb); pps_id = get_ue_golomb(&s->gb);
if (pps_id >= MAX_PPS_COUNT) { if (pps_id >= MAX_PPS_COUNT) {
av_log(h->s.avctx, AV_LOG_ERROR, "pps_id out of range\n"); av_log(h->s.avctx, AV_LOG_ERROR, "pps_id %d out of range\n", pps_id);
return -1; return -1;
} }
if (!h0->pps_buffers[pps_id]) { if (!h0->pps_buffers[pps_id]) {
......
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