Skip to content
Snippets Groups Projects
Commit 61bd0ed7 authored by Vittorio Giovara's avatar Vittorio Giovara
Browse files

h264: Log more information about invalid NALu size

parent 7b1ae0e7
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment