You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-11-29 05:57:37 +02:00
avcodec/dovi_rpudec: don't unnecessarily allocate DOVIExt
This commit is contained in:
@@ -289,7 +289,7 @@ static int parse_ext_blocks(DOVIContext *s, GetBitContext *gb, int ver)
|
||||
num_ext_blocks = get_ue_golomb_31(gb);
|
||||
align_get_bits(gb);
|
||||
|
||||
if (!ext) {
|
||||
if (num_ext_blocks && !ext) {
|
||||
ext = s->ext_blocks = ff_refstruct_allocz(sizeof(*s->ext_blocks));
|
||||
if (!ext)
|
||||
return AVERROR(ENOMEM);
|
||||
|
||||
Reference in New Issue
Block a user