summaryrefslogtreecommitdiffstats
path: root/libavcodec/h264_sei.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-10-03 20:13:55 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-10-03 20:13:55 +0200
commit6565b1ad97fe166891dd0bb6652b78216dc2d039 (patch)
tree39751cb8b21d5e5a413fb201e64b247147dc4439 /libavcodec/h264_sei.c
parentfcd19d6c8db514b017662166d014ac8560fbe8f5 (diff)
downloadffmpeg-streaming-6565b1ad97fe166891dd0bb6652b78216dc2d039.zip
ffmpeg-streaming-6565b1ad97fe166891dd0bb6652b78216dc2d039.tar.gz
avcodec/h264_sei: make SEI type truncated message more informative
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/h264_sei.c')
-rw-r--r--libavcodec/h264_sei.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/h264_sei.c b/libavcodec/h264_sei.c
index cbe7b07..7d5558a 100644
--- a/libavcodec/h264_sei.c
+++ b/libavcodec/h264_sei.c
@@ -285,8 +285,8 @@ int ff_h264_decode_sei(H264Context *h)
av_log(h->avctx, AV_LOG_DEBUG, "SEI %d len:%d\n", type, size);
if (size > get_bits_left(&h->gb) / 8) {
- av_log(h->avctx, AV_LOG_ERROR, "SEI type %d truncated at %d\n",
- type, get_bits_left(&h->gb));
+ av_log(h->avctx, AV_LOG_ERROR, "SEI type %d size %d truncated at %d\n",
+ type, 8*size, get_bits_left(&h->gb));
return AVERROR_INVALIDDATA;
}
next = get_bits_count(&h->gb) + 8 * size;
OpenPOWER on IntegriCloud