hevc: unref the current frame if frame_start() fails

Prevents DPB from filling up with damaged input.
This commit is contained in:
Anton Khirnov 2014-11-20 09:41:56 +01:00
parent 1dd021929f
commit 443b71928b
1 changed files with 1 additions and 1 deletions

View File

@ -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;
} }