summaryrefslogtreecommitdiffstats
path: root/libavcodec/hevc_refs.c
diff options
context:
space:
mode:
authorPeter Kovář <peter.kovar@gmail.com>2014-05-14 19:42:44 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-05-14 20:30:44 +0200
commit973de9ebf8796bc2720a9959a9a535cf4023c58a (patch)
treefeb425f9b0f9b15adaf3685293ac4ef762e8ab1a /libavcodec/hevc_refs.c
parent434ba17b22c61d968d595c02230c38e0bef1ea24 (diff)
downloadffmpeg-streaming-973de9ebf8796bc2720a9959a9a535cf4023c58a.zip
ffmpeg-streaming-973de9ebf8796bc2720a9959a9a535cf4023c58a.tar.gz
avcodec/hevc: fix outputted AVFrame.key_frame
previously it was always 1 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/hevc_refs.c')
-rw-r--r--libavcodec/hevc_refs.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/hevc_refs.c b/libavcodec/hevc_refs.c
index 24d55d1..91347cf 100644
--- a/libavcodec/hevc_refs.c
+++ b/libavcodec/hevc_refs.c
@@ -207,6 +207,9 @@ int ff_hevc_output_frame(HEVCContext *s, AVFrame *out, int flush)
(frame->window.top_offset >> vshift) * dst->linesize[i];
dst->data[i] += off;
}
+
+ out->key_frame = out->pict_type == AV_PICTURE_TYPE_I;
+
av_log(s->avctx, AV_LOG_DEBUG,
"Output frame with POC %d.\n", frame->poc);
return 1;
OpenPOWER on IntegriCloud