Commit 2f1a539d authored by Hendrik Leppkes's avatar Hendrik Leppkes

Merge commit '61bd0ed7'

* commit '61bd0ed7':
  h264: Log more information about invalid NALu size
Merged-by: 's avatarHendrik Leppkes <h.leppkes@gmail.com>
parents 286d8bae 61bd0ed7
......@@ -104,7 +104,7 @@ static inline int get_nalsize(int nal_length_size, const uint8_t *buf,
nalsize = ((unsigned)nalsize << 8) | buf[(*buf_index)++];
if (nalsize <= 0 || nalsize > buf_size - *buf_index) {
av_log(logctx, AV_LOG_ERROR,
"Invalid nal size %d\n", nalsize);
"Invalid NAL unit size (%d > %d).\n", nalsize, buf_size - *buf_index);
return AVERROR_INVALIDDATA;
}
return nalsize;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment