avcodec/h264: mark recovery_cnt==0 frames as keyframes
[ffmpeg.git] / libavcodec / h264_picture.c
index 36028dc..61ff862 100644 (file)
@@ -122,6 +122,7 @@ int ff_h264_ref_picture(H264Context *h, H264Picture *dst, H264Picture *src)
     dst->crop_top      = src->crop_top;
     dst->recovered     = src->recovered;
     dst->invalid_gap   = src->invalid_gap;
+    dst->sei_recovery_frame_cnt = src->sei_recovery_frame_cnt;
 
     return 0;
 fail: