summaryrefslogtreecommitdiff
path: root/libavcodec/hevc.c
diff options
context:
space:
mode:
authorMickaƫl Raulet <mraulet@insa-rennes.fr>2014-07-26 14:27:56 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-07-26 15:40:34 +0200
commit23480da0aa70b045b7b8dea7da8fedde0bcd7062 (patch)
tree46889cf309f1eb90221b01187f1db5c426df8535 /libavcodec/hevc.c
parentc0a586d9d5cd99e9f36e4d190f9aa137803378dc (diff)
hevc: add support for bumping process
cherry picked from commit 8aa2fb7df3cffc67a3fd03a3a7eb49dbed4094c7 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/hevc.c')
-rw-r--r--libavcodec/hevc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/hevc.c b/libavcodec/hevc.c
index af74034281..e71d39ce0b 100644
--- a/libavcodec/hevc.c
+++ b/libavcodec/hevc.c
@@ -2601,6 +2601,9 @@ static int hevc_frame_start(HEVCContext *s)
s->frame->pict_type = 3 - s->sh.slice_type;
+ if (!IS_IRAP(s))
+ ff_hevc_bump_frame(s);
+
av_frame_unref(s->output_frame);
ret = ff_hevc_output_frame(s, s->output_frame, 0);
if (ret < 0)