mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-12-01 07:20:58 +00:00
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;
|
||||
|
||||
fail:
|
||||
if (s->ref && s->threads_type == FF_THREAD_FRAME)
|
||||
ff_thread_report_progress(&s->ref->tf, INT_MAX, 0);
|
||||
if (s->ref)
|
||||
ff_hevc_unref_frame(s, s->ref, ~0);
|
||||
s->ref = NULL;
|
||||
return ret;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user