[FFmpeg-cvslog] hevc: unref the current frame if frame_start() fails
Anton Khirnov
git at videolan.org
Tue Jan 27 13:21:39 CET 2015
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Thu Nov 20 09:41:56 2014 +0100| [443b71928b2f36362e805c037751e6c3c79ea4e8] | committer: Anton Khirnov
hevc: unref the current frame if frame_start() fails
Prevents DPB from filling up with damaged input.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=443b71928b2f36362e805c037751e6c3c79ea4e8
---
libavcodec/hevc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/hevc.c b/libavcodec/hevc.c
index 897a28e..9957f31 100644
--- a/libavcodec/hevc.c
+++ b/libavcodec/hevc.c
@@ -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;
}
More information about the ffmpeg-cvslog
mailing list