Commit 15dd56c0 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/h2645_parse: fix nal size

Found-by: <durandal_1707>
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 528171ba
......@@ -88,7 +88,8 @@ int ff_h2645_extract_rbsp(const uint8_t *src, int length,
nal->size =
nal->raw_size = length;
return length;
}
} else if (i > length)
i = length;
av_fast_padded_malloc(&nal->rbsp_buffer, &nal->rbsp_buffer_size,
length + padding);
......
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