From 27e3418844aea51e9d8a8c145871f422504a6598 Mon Sep 17 00:00:00 2001 From: Justin Ruggles Date: Fri, 30 Jul 2010 19:02:59 +0000 Subject: [PATCH] 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 --- libavcodec/flacenc.c | 1 - 1 file changed, 1 deletion(-) 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);