From ec5dc2c1af47e6f19e2bc482b3a1be09ba9e31bb Mon Sep 17 00:00:00 2001
From: Alex Beregszaszi <alex@rtfs.hu>
Date: Wed, 8 Aug 2007 20:27:18 +0000
Subject: [PATCH] debug: tell how much bits are skipped with unknown nal code

Originally committed as revision 9993 to svn://svn.ffmpeg.org/ffmpeg/trunk
---
 libavcodec/h264.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index ea1be3cb105..1b07b3af497 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -7853,7 +7853,7 @@ static int decode_nal_units(H264Context *h, uint8_t *buf, int buf_size){
         case NAL_AUXILIARY_SLICE:
             break;
         default:
-            av_log(avctx, AV_LOG_ERROR, "Unknown NAL code: %d\n", h->nal_unit_type);
+            av_log(avctx, AV_LOG_ERROR, "Unknown NAL code: %d (%d bits)\n", h->nal_unit_type, bit_length);
         }
     }
 
-- 
GitLab