mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
avcodec/vp9_superframe_bsf: cache packets by creating new references rather than moving them
Should hopefully fix the invalid reads after free introduced in
e1bc3f4396
for all targets.
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
05d77587cb
commit
7a02b364b6
@ -147,7 +147,9 @@ static int vp9_superframe_filter(AVBSFContext *ctx, AVPacket *out)
|
||||
goto done;
|
||||
}
|
||||
|
||||
av_packet_move_ref(s->cache[s->n_cache++], in);
|
||||
res = av_packet_ref(s->cache[s->n_cache++], in);
|
||||
if (res < 0)
|
||||
goto done;
|
||||
|
||||
if (invisible) {
|
||||
res = AVERROR(EAGAIN);
|
||||
|
Loading…
Reference in New Issue
Block a user