hevc: unref the current frame if frame_start() fails

Prevents DPB from filling up with damaged input.
pull/115/head
Anton Khirnov 10 years ago
parent 1dd021929f
commit 443b71928b
  1. 2
      libavcodec/hevc.c

@ -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…
Cancel
Save