summaryrefslogtreecommitdiffstats
path: root/libavcodec/h2645_parse.c
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2016-07-05 16:22:08 -0400
committerVittorio Giovara <vittorio.giovara@gmail.com>2016-07-13 18:18:46 -0400
commit61bd0ed781b56eea1e8e851aab34a2ee3b59fbac (patch)
treeb2dcb132ae31f3076a42e397fd8538c0dc208146 /libavcodec/h2645_parse.c
parent7b1ae0e73ab7f7c5eabc70dbe2e579127c6e154f (diff)
downloadffmpeg-streaming-61bd0ed781b56eea1e8e851aab34a2ee3b59fbac.zip
ffmpeg-streaming-61bd0ed781b56eea1e8e851aab34a2ee3b59fbac.tar.gz
h264: Log more information about invalid NALu size
Diffstat (limited to 'libavcodec/h2645_parse.c')
-rw-r--r--libavcodec/h2645_parse.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/h2645_parse.c b/libavcodec/h2645_parse.c
index e252efa..8492425 100644
--- a/libavcodec/h2645_parse.c
+++ b/libavcodec/h2645_parse.c
@@ -237,7 +237,9 @@ int ff_h2645_packet_split(H2645Packet *pkt, const uint8_t *buf, int length,
extract_length = (extract_length << 8) | buf[i];
if (extract_length > length) {
- av_log(logctx, AV_LOG_ERROR, "Invalid NAL unit size.\n");
+ av_log(logctx, AV_LOG_ERROR,
+ "Invalid NAL unit size (%d > %d).\n",
+ extract_length, length);
return AVERROR_INVALIDDATA;
}
buf += nal_length_size;
OpenPOWER on IntegriCloud