[FFmpeg-cvslog] flashsvenc: Keep coded_frame.key_frame a write-only variable

Vittorio Giovara git at videolan.org
Mon Jul 20 22:48:22 CEST 2015


ffmpeg | branch: master | Vittorio Giovara <vittorio.giovara at gmail.com> | Wed Jul 15 18:41:19 2015 +0100| [91f9b6579ac684c4b51c4cd0dbaed0a4f8295edf] | committer: Vittorio Giovara

flashsvenc: Keep coded_frame.key_frame a write-only variable

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=91f9b6579ac684c4b51c4cd0dbaed0a4f8295edf
---

 libavcodec/flashsvenc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/flashsvenc.c b/libavcodec/flashsvenc.c
index 971ce1b..1c87ae3 100644
--- a/libavcodec/flashsvenc.c
+++ b/libavcodec/flashsvenc.c
@@ -275,7 +275,7 @@ static int flashsv_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
         avctx->coded_frame->key_frame = 0;
     }
 
-    if (avctx->coded_frame->key_frame)
+    if (I_frame)
         pkt->flags |= AV_PKT_FLAG_KEY;
     *got_packet = 1;
 



More information about the ffmpeg-cvslog mailing list