[FFmpeg-cvslog] h264: Log more information about invalid NALu size
Vittorio Giovara
git at videolan.org
Thu Nov 17 16:25:03 EET 2016
ffmpeg | branch: master | Vittorio Giovara <vittorio.giovara at gmail.com> | Tue Jul 5 16:22:08 2016 -0400| [61bd0ed781b56eea1e8e851aab34a2ee3b59fbac] | committer: Vittorio Giovara
h264: Log more information about invalid NALu size
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=61bd0ed781b56eea1e8e851aab34a2ee3b59fbac
---
libavcodec/h2645_parse.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
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;
More information about the ffmpeg-cvslog
mailing list