mirror of https://git.ffmpeg.org/ffmpeg.git
hevc: unref the current frame if frame_start() fails
Prevents DPB from filling up with damaged input.
This commit is contained in:
parent
1dd021929f
commit
443b71928b
|
@ -2460,7 +2460,7 @@ static int hevc_frame_start(HEVCContext *s)
|
||||||
|
|
||||||
fail:
|
fail:
|
||||||
if (s->ref)
|
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