[FFmpeg-cvslog] avcodec/hevc: fix outputted AVFrame.key_frame
Peter Kovář
git at videolan.org
Wed May 14 20:34:21 CEST 2014
ffmpeg | branch: master | Peter Kovář <peter.kovar at gmail.com> | Wed May 14 19:42:44 2014 +0200| [973de9ebf8796bc2720a9959a9a535cf4023c58a] | committer: Michael Niedermayer
avcodec/hevc: fix outputted AVFrame.key_frame
previously it was always 1
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=973de9ebf8796bc2720a9959a9a535cf4023c58a
---
libavcodec/hevc_refs.c | 3 +++
1 file changed, 3 insertions(+)
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;
More information about the ffmpeg-cvslog
mailing list