Commit 443b7192 authored by Anton Khirnov's avatar Anton Khirnov

hevc: unref the current frame if frame_start() fails

Prevents DPB from filling up with damaged input.
parent 1dd02192
......@@ -2460,7 +2460,7 @@ static int hevc_frame_start(HEVCContext *s)
fail:
if (s->ref)
ff_thread_report_progress(&s->ref->tf, INT_MAX, 0);
ff_hevc_unref_frame(s, s->ref, ~0);
s->ref = NULL;
return ret;
}
......
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