summaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2015-07-15 18:41:19 +0100
committerVittorio Giovara <vittorio.giovara@gmail.com>2015-07-20 14:13:42 +0100
commit91f9b6579ac684c4b51c4cd0dbaed0a4f8295edf (patch)
treec473989d8b4aac92437d1828333929ac365a16f4 /libavcodec
parent75c1ed2e4c7250f5e75a11d0140727054ff0136b (diff)
downloadffmpeg-streaming-91f9b6579ac684c4b51c4cd0dbaed0a4f8295edf.zip
ffmpeg-streaming-91f9b6579ac684c4b51c4cd0dbaed0a4f8295edf.tar.gz
flashsvenc: Keep coded_frame.key_frame a write-only variable
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/flashsvenc.c2
1 files changed, 1 insertions, 1 deletions
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;
OpenPOWER on IntegriCloud