Browse Source

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

This reverts commit 7a02b364b6.

The packet fetched by ff_bsf_get_packet() and ff_bsf_get_packet_ref()
is now guaranteed to be reference counted.

Reviewed-by: wm4 <nfxjfg@googlemail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
tags/n4.0
James Almer 7 years ago
parent
commit
823362782c
1 changed files with 1 additions and 3 deletions
  1. +1
    -3
      libavcodec/vp9_superframe_bsf.c

+ 1
- 3
libavcodec/vp9_superframe_bsf.c View File

@@ -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);


Loading…
Cancel
Save