aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/h264.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-11-03 17:24:05 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-05-03 16:01:45 +0200
commit7ef01a7878149de43aa49e676a343ca67b24c6b2 (patch)
treeb8c02a321d99ea3a448d3e9c3cac29d8da96af3d /libavcodec/h264.c
parenta75349d0c833da6828c8a8261516d94e705633d6 (diff)
downloadffmpeg-7ef01a7878149de43aa49e676a343ca67b24c6b2.tar.gz
avcodec/h264: mark recovery_cnt==0 frames as keyframes
Fixes Ticket3063 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/h264.c')
-rw-r--r--libavcodec/h264.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index dd70af32e1..942ba7f20a 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -1781,6 +1781,8 @@ static int output_frame(H264Context *h, AVFrame *dst, H264Picture *srcp)
av_dict_set(&dst->metadata, "stereo_mode", ff_h264_sei_stereo_mode(h), 0);
+ if (srcp->sei_recovery_frame_cnt == 0)
+ dst->key_frame = 1;
if (!srcp->crop)
return 0;