[FFmpeg-devel] Minor bug in h264.c error trace

Sergio Garcia Murillo sergio.garcia.murillo at gmail.com
Mon Nov 26 17:19:56 CET 2012


Hi all,

There is a very minor bug in h264 in one error trace, patch below

diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index f1c5104..0413ba4 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -2410,7 +2410,7 @@ static int decode_slice_header(H264Context *h, 
H264Context *h0)
      if (slice_type > 9) {
          av_log(h->s.avctx, AV_LOG_ERROR,
                 "slice type too large (%d) at %d %d\n",
-               h->slice_type, s->mb_x, s->mb_y);
+               slice_type, s->mb_x, s->mb_y);
          return -1;
      }
      if (slice_type > 4) {


Best regards
Sergio


More information about the ffmpeg-devel mailing list