[FFmpeg-cvslog] lavc/h264_ps: Be more verbose when truncating likely oversized PPS.
Carl Eugen Hoyos
git at videolan.org
Sun Jul 24 21:22:06 EEST 2016
ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Fri Jul 22 19:24:15 2016 +0200| [9bd35a76fc94e2ac633c9b3e831859e2846e59ea] | committer: Carl Eugen Hoyos
lavc/h264_ps: Be more verbose when truncating likely oversized PPS.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9bd35a76fc94e2ac633c9b3e831859e2846e59ea
---
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);
More information about the ffmpeg-cvslog
mailing list