summaryrefslogtreecommitdiff
path: root/libavcodec/h264_ps.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2016-07-22 19:24:15 +0200
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2016-07-24 20:21:37 +0200
commit9bd35a76fc94e2ac633c9b3e831859e2846e59ea (patch)
tree7a6c9ee2b6e08dc09a97c8ca379c75b04d7ed2e0 /libavcodec/h264_ps.c
parentb4054100f675b395204f1a0471fba0b06fe08e9f (diff)
lavc/h264_ps: Be more verbose when truncating likely oversized PPS.
Diffstat (limited to 'libavcodec/h264_ps.c')
-rw-r--r--libavcodec/h264_ps.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/h264_ps.c b/libavcodec/h264_ps.c
index 3bcc6e15b3..7d1cf19271 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);