Commit 82336278 authored by James Almer's avatar James Almer

Revert "avcodec/vp9_superframe_bsf: cache packets by creating new references...

Revert "avcodec/vp9_superframe_bsf: cache packets by creating new references rather than moving them"

This reverts commit 7a02b364.

The packet fetched by ff_bsf_get_packet() and ff_bsf_get_packet_ref()
is now guaranteed to be reference counted.
Reviewed-by: 's avatarwm4 <nfxjfg@googlemail.com>
Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
parent db2a7c94
......@@ -147,9 +147,7 @@ static int vp9_superframe_filter(AVBSFContext *ctx, AVPacket *out)
goto done;
}
res = av_packet_ref(s->cache[s->n_cache++], in);
if (res < 0)
goto done;
av_packet_move_ref(s->cache[s->n_cache++], in);
if (invisible) {
res = AVERROR(EAGAIN);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment