From: Justin Ruggles Date: Fri, 30 Jul 2010 19:02:59 +0000 (+0000) Subject: Do not need to set coded_frame->key_frame = 1 because it is already set in X-Git-Tag: android-x86-4.4-r1~20662 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=27e3418844aea51e9d8a8c145871f422504a6598;p=android-x86%2Fexternal-ffmpeg.git Do not need to set coded_frame->key_frame = 1 because it is already set in avcodec_alloc_frame(). Originally committed as revision 24600 to svn://svn.ffmpeg.org/ffmpeg/trunk --- diff --git a/libavcodec/flacenc.c b/libavcodec/flacenc.c index 87d22a1167..b23d3a6c97 100644 --- a/libavcodec/flacenc.c +++ b/libavcodec/flacenc.c @@ -437,7 +437,6 @@ static av_cold int flac_encode_init(AVCodecContext *avctx) avctx->coded_frame = avcodec_alloc_frame(); if (!avctx->coded_frame) return AVERROR(ENOMEM); - avctx->coded_frame->key_frame = 1; dprint_compression_options(s);