Hi! Attached patch prints the size of the oversized pps when truncating.
Please comment, Carl Eugen
From 0ac76e23c283103441f372590eba24d14b2977c2 Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos <ceho...@ag.or.at> Date: Fri, 22 Jul 2016 19:24:15 +0200 Subject: [PATCH] lavc/h264_ps: Be more verbose when truncating likely oversized PPS. --- libavcodec/h264_ps.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libavcodec/h264_ps.c b/libavcodec/h264_ps.c index 3bcc6e1..7d1cf19 100644 --- a/libavcodec/h264_ps.c +++ b/libavcodec/h264_ps.c @@ -732,7 +732,9 @@ int ff_h264_decode_picture_parameter_set(GetBitContext *gb, AVCodecContext *avct pps->data_size = gb->buffer_end - gb->buffer; if (pps->data_size > sizeof(pps->data)) { - av_log(avctx, AV_LOG_WARNING, "Truncating likely oversized PPS\n"); + av_log(avctx, AV_LOG_WARNING, "Truncating likely oversized PPS " + "(%"SIZE_SPECIFIER" > %"SIZE_SPECIFIER")\n", + pps->data_size, sizeof(pps->data)); pps->data_size = sizeof(pps->data); } memcpy(pps->data, gb->buffer, pps->data_size); -- 1.7.10.4
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel