Browse Source

hevc: unref the current frame if frame_start() fails

Prevents DPB from filling up with damaged input.
tags/n2.6
Anton Khirnov 11 years ago
parent
commit
443b71928b
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/hevc.c

+ 1
- 1
libavcodec/hevc.c View File

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


Loading…
Cancel
Save