Browse Source

Merge commit '443b71928b2f36362e805c037751e6c3c79ea4e8'

* commit '443b71928b2f36362e805c037751e6c3c79ea4e8':
  hevc: unref the current frame if frame_start() fails

Conflicts:
	libavcodec/hevc.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.6
Michael Niedermayer 11 years ago
parent
commit
a7fa1b9aa1
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavcodec/hevc.c

+ 2
- 2
libavcodec/hevc.c View File

@@ -2591,8 +2591,8 @@ static int hevc_frame_start(HEVCContext *s)
return 0;

fail:
if (s->ref && s->threads_type == FF_THREAD_FRAME)
ff_thread_report_progress(&s->ref->tf, INT_MAX, 0);
if (s->ref)
ff_hevc_unref_frame(s, s->ref, ~0);
s->ref = NULL;
return ret;
}


Loading…
Cancel
Save