diff options
author | Anton Khirnov <anton@khirnov.net> | 2014-11-20 09:41:56 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2015-01-27 08:34:56 +0100 |
commit | 443b71928b2f36362e805c037751e6c3c79ea4e8 (patch) | |
tree | ea282ad20616ee181371e9018c47ed5526c30aa7 /libavcodec | |
parent | 1dd021929f8157b88529ce1e6ab6351dd2899e89 (diff) | |
download | ffmpeg-443b71928b2f36362e805c037751e6c3c79ea4e8.tar.gz |
hevc: unref the current frame if frame_start() fails
Prevents DPB from filling up with damaged input.
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/hevc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/hevc.c b/libavcodec/hevc.c index 897a28efd4..9957f31cc5 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; } |