lavc/h264_ps: Be more verbose when truncating likely oversized PPS.
authorCarl Eugen Hoyos <cehoyos@ag.or.at>
Fri, 22 Jul 2016 17:24:15 +0000 (19:24 +0200)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Sun, 24 Jul 2016 18:21:37 +0000 (20:21 +0200)
libavcodec/h264_ps.c

index 3bcc6e1..7d1cf19 100644 (file)
@@ -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);