summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorPanagiotis Issaris <takis.issaris@uhasselt.be>2009-03-03 14:32:24 +0000
committerPanagiotis Issaris <takis.issaris@uhasselt.be>2009-03-03 14:32:24 +0000
commita0f8005079e4c90e9c2979770274c46135c0cc4a (patch)
tree6bdb75c8e30630fe7f5387c2b59328ef9cbf9740 /libavcodec
parentb11163c8e40b263746648add140f9a9c99f6bcfa (diff)
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. Originally committed as revision 17771 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/h264.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index add7f1e467..19725e7986 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -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];