Do not need to set coded_frame->key_frame = 1 because it is already set in
authorJustin Ruggles <justin.ruggles@gmail.com>
Fri, 30 Jul 2010 19:02:59 +0000 (19:02 +0000)
committerJustin Ruggles <justin.ruggles@gmail.com>
Fri, 30 Jul 2010 19:02:59 +0000 (19:02 +0000)
avcodec_alloc_frame().

Originally committed as revision 24600 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/flacenc.c

index 87d22a1..b23d3a6 100644 (file)
@@ -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);