Browse Source

mimic: do not release the newly obsolete reference at the end of decoding

The reference frames are used in update_thread_context(), so modifying
them after finish_setup() is a race. The frame in question will be
released during the next decode call.

CC: libav-stable@libav.org
tags/n3.3
Anton Khirnov 9 years ago
parent
commit
a115eb9e75
1 changed files with 0 additions and 3 deletions
  1. +0
    -3
      libavcodec/mimic.c

+ 0
- 3
libavcodec/mimic.c View File

@@ -445,9 +445,6 @@ static int mimic_decode_frame(AVCodecContext *avctx, void *data,
ctx->prev_index = ctx->next_prev_index;
ctx->cur_index = ctx->next_cur_index;

/* Only release frames that aren't used for backreferences anymore */
ff_thread_release_buffer(avctx, &ctx->frames[ctx->cur_index]);

return buf_size;
}



Loading…
Cancel
Save