[FFmpeg-cvslog] avcodec/dvbsubdec: Print field lens in case they are too lerge

Michael Niedermayer git at videolan.org
Thu Aug 13 02:22:44 CEST 2015


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Thu Aug 13 01:50:08 2015 +0200| [d21ab8e4119e9f5ace30a813ed1af0d98b3782f1] | committer: Michael Niedermayer

avcodec/dvbsubdec: Print field lens in case they are too lerge

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d21ab8e4119e9f5ace30a813ed1af0d98b3782f1
---

 libavcodec/dvbsubdec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/dvbsubdec.c b/libavcodec/dvbsubdec.c
index 21ef43f..ec7c146 100644
--- a/libavcodec/dvbsubdec.c
+++ b/libavcodec/dvbsubdec.c
@@ -1090,7 +1090,7 @@ static int dvbsub_parse_object_segment(AVCodecContext *avctx,
         buf += 2;
 
         if (buf + top_field_len + bottom_field_len > buf_end) {
-            av_log(avctx, AV_LOG_ERROR, "Field data size too large\n");
+            av_log(avctx, AV_LOG_ERROR, "Field data size %d+%d too large\n", top_field_len, bottom_field_len);
             return AVERROR_INVALIDDATA;
         }
 



More information about the ffmpeg-cvslog mailing list