mirror of https://git.ffmpeg.org/ffmpeg.git
Merge commit '443b71928b2f36362e805c037751e6c3c79ea4e8'
* commit '443b71928b2f36362e805c037751e6c3c79ea4e8': hevc: unref the current frame if frame_start() fails Conflicts: libavcodec/hevc.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
a7fa1b9aa1
|
@ -2591,8 +2591,8 @@ static int hevc_frame_start(HEVCContext *s)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
fail:
|
fail:
|
||||||
if (s->ref && s->threads_type == FF_THREAD_FRAME)
|
if (s->ref)
|
||||||
ff_thread_report_progress(&s->ref->tf, INT_MAX, 0);
|
ff_hevc_unref_frame(s, s->ref, ~0);
|
||||||
s->ref = NULL;
|
s->ref = NULL;
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue