aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/h264.c
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2013-09-20 15:42:41 +0200
committerAnton Khirnov <anton@khirnov.net>2013-09-24 13:24:28 +0200
commitedaba18021e4793116f0f266e65077578a5e742e (patch)
tree11e553413ed5a851873e7b5dbdfc3f4fb83757c8 /libavcodec/h264.c
parent26179964ff3fa1173e6f512c5735ba8223e2395d (diff)
downloadffmpeg-edaba18021e4793116f0f266e65077578a5e742e.tar.gz
h264: log extradata skip only for non-ignored NALs
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavcodec/h264.c')
-rw-r--r--libavcodec/h264.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 9d012c5517..323d1916a0 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -4559,8 +4559,11 @@ again:
(h->avctx->active_thread_type & FF_THREAD_FRAME) &&
(hx->nal_unit_type != NAL_PPS &&
hx->nal_unit_type != NAL_SPS)) {
- av_log(avctx, AV_LOG_INFO, "Ignoring NAL unit %d during "
- "extradata parsing\n", hx->nal_unit_type);
+ if (hx->nal_unit_type < NAL_AUD ||
+ hx->nal_unit_type > NAL_AUXILIARY_SLICE)
+ av_log(avctx, AV_LOG_INFO,
+ "Ignoring NAL unit %d during extradata parsing\n",
+ hx->nal_unit_type);
hx->nal_unit_type = NAL_FF_IGNORE;
}
err = 0;