mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-08 13:22:53 +02:00
avcodec/h2645_parse: fix nal size
Found-by: <durandal_1707> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
528171ba84
commit
15dd56c093
@ -88,7 +88,8 @@ int ff_h2645_extract_rbsp(const uint8_t *src, int length,
|
|||||||
nal->size =
|
nal->size =
|
||||||
nal->raw_size = length;
|
nal->raw_size = length;
|
||||||
return length;
|
return length;
|
||||||
}
|
} else if (i > length)
|
||||||
|
i = length;
|
||||||
|
|
||||||
av_fast_padded_malloc(&nal->rbsp_buffer, &nal->rbsp_buffer_size,
|
av_fast_padded_malloc(&nal->rbsp_buffer, &nal->rbsp_buffer_size,
|
||||||
length + padding);
|
length + padding);
|
||||||
|
Loading…
Reference in New Issue
Block a user