OSDN Git Service

libmp3lame: do not set coded_frame->key_frame.
authorJustin Ruggles <justin.ruggles@gmail.com>
Fri, 17 Feb 2012 03:12:21 +0000 (22:12 -0500)
committerJustin Ruggles <justin.ruggles@gmail.com>
Mon, 20 Feb 2012 17:32:30 +0000 (12:32 -0500)
it is already set in avcodec_alloc_frame()

libavcodec/libmp3lame.c

index 1241cdc..0409655 100644 (file)
@@ -89,7 +89,6 @@ static av_cold int MP3lame_encode_init(AVCodecContext *avctx)
         ret = AVERROR(ENOMEM);
         goto error;
     }
-    avctx->coded_frame->key_frame = 1;
 
     return 0;
 error: