Skip to content
Snippets Groups Projects
Commit 15dd56c0 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

avcodec/h2645_parse: fix nal size


Found-by: <durandal_1707>
Signed-off-by: default avatarMichael Niedermayer <michael@niedermayer.cc>
parent 528171ba
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment