mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
avcodec/vp9: Use av_freep() instead of av_free()
Otherwise the context would be in an inconsistent state if vp9_alloc_entries() failed (and if this would be checked). Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
84f716ccff
commit
b0ee627ef9
@ -790,7 +790,7 @@ static int decode_frame_header(AVCodecContext *avctx,
|
||||
if (s->td) {
|
||||
for (i = 0; i < s->active_tile_cols; i++)
|
||||
vp9_tile_data_free(&s->td[i]);
|
||||
av_free(s->td);
|
||||
av_freep(&s->td);
|
||||
}
|
||||
|
||||
s->s.h.tiling.tile_cols = 1 << s->s.h.tiling.log2_tile_cols;
|
||||
|
Loading…
Reference in New Issue
Block a user