changeset 9112:79818b0595c0 libavcodec

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.
author takis
date Tue, 03 Mar 2009 14:32:24 +0000
parents 5f04afc7af53
children 21f500327e5c
files h264.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/h264.c	Tue Mar 03 13:43:24 2009 +0000
+++ b/h264.c	Tue Mar 03 14:32:24 2009 +0000
@@ -3708,13 +3708,13 @@
         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];