Commit 365953ec authored by takis's avatar takis

When a H.264 stream references a PPS or SPS id which doesn't exist, instead of

just saying that a non-existing id is referenced, show the value of the id.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17771 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 7c869ad4
......@@ -3708,13 +3708,13 @@ static int decode_slice_header(H264Context *h, H264Context *h0){
return -1;
}
if(!h0->pps_buffers[pps_id]) {
av_log(h->s.avctx, AV_LOG_ERROR, "non-existing PPS referenced\n");
av_log(h->s.avctx, AV_LOG_ERROR, "non-existing PPS %u referenced\n", pps_id);
return -1;
}
h->pps= *h0->pps_buffers[pps_id];
if(!h0->sps_buffers[h->pps.sps_id]) {
av_log(h->s.avctx, AV_LOG_ERROR, "non-existing SPS referenced\n");
av_log(h->s.avctx, AV_LOG_ERROR, "non-existing SPS %u referenced\n", h->pps.sps_id);
return -1;
}
h->sps = *h0->sps_buffers[h->pps.sps_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