diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2016-07-05 16:22:08 -0400 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2016-07-13 18:18:46 -0400 |
commit | 61bd0ed781b56eea1e8e851aab34a2ee3b59fbac (patch) | |
tree | b2dcb132ae31f3076a42e397fd8538c0dc208146 | |
parent | 7b1ae0e73ab7f7c5eabc70dbe2e579127c6e154f (diff) | |
download | ffmpeg-61bd0ed781b56eea1e8e851aab34a2ee3b59fbac.tar.gz |
h264: Log more information about invalid NALu size
-rw-r--r-- | libavcodec/h2645_parse.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/h2645_parse.c b/libavcodec/h2645_parse.c index e252efa7dc..8492425e44 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; |