mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
h264: Log more information about invalid NALu size
This commit is contained in:
parent
7b1ae0e73a
commit
61bd0ed781
@ -237,7 +237,9 @@ int ff_h2645_packet_split(H2645Packet *pkt, const uint8_t *buf, int length,
|
|||||||
extract_length = (extract_length << 8) | buf[i];
|
extract_length = (extract_length << 8) | buf[i];
|
||||||
|
|
||||||
if (extract_length > length) {
|
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;
|
return AVERROR_INVALIDDATA;
|
||||||
}
|
}
|
||||||
buf += nal_length_size;
|
buf += nal_length_size;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user