diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2015-07-15 18:41:19 +0100 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2015-07-20 14:13:42 +0100 |
commit | 91f9b6579ac684c4b51c4cd0dbaed0a4f8295edf (patch) | |
tree | c473989d8b4aac92437d1828333929ac365a16f4 /libavcodec | |
parent | 75c1ed2e4c7250f5e75a11d0140727054ff0136b (diff) | |
download | ffmpeg-91f9b6579ac684c4b51c4cd0dbaed0a4f8295edf.tar.gz |
flashsvenc: Keep coded_frame.key_frame a write-only variable
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/flashsvenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/flashsvenc.c b/libavcodec/flashsvenc.c index 971ce1be82..1c87ae3b23 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; |