Commit 446ac80e authored by Hendrik Leppkes's avatar Hendrik Leppkes

Merge commit '4a326923'

* commit '4a326923':
  mimic: Always return on failure
Merged-by: 's avatarHendrik Leppkes <h.leppkes@gmail.com>
parents b40e43c5 4a326923
......@@ -432,10 +432,9 @@ static int mimic_decode_frame(AVCodecContext *avctx, void *data,
res = decode(ctx, quality, num_coeffs, !is_pframe);
ff_thread_report_progress(&ctx->frames[ctx->cur_index], INT_MAX, 0);
if (res < 0) {
if (!(avctx->active_thread_type & FF_THREAD_FRAME)) {
if (!(avctx->active_thread_type & FF_THREAD_FRAME))
ff_thread_release_buffer(avctx, &ctx->frames[ctx->cur_index]);
return res;
}
return res;
}
if ((res = av_frame_ref(data, ctx->frames[ctx->cur_index].f)) < 0)
......
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