From 255ad8881db0fa937e3632c4937f23d29d0e423d Mon Sep 17 00:00:00 2001 From: Justin Ruggles Date: Wed, 15 Feb 2012 19:11:06 -0500 Subject: [PATCH] audio encoders: do not set coded_frame->key_frame. it is already set in avcodec_alloc_frame() --- libavcodec/libfaac.c | 1 - libavcodec/libgsm.c | 1 - libavcodec/libvorbis.c | 1 - libavcodec/mpegaudioenc.c | 1 - libavcodec/pcm.c | 1 - libavcodec/roqaudioenc.c | 1 - 6 files changed, 6 deletions(-) diff --git a/libavcodec/libfaac.c b/libavcodec/libfaac.c index 7ee1f3c3fa..997aa834a4 100644 --- a/libavcodec/libfaac.c +++ b/libavcodec/libfaac.c @@ -90,7 +90,6 @@ static av_cold int Faac_encode_init(AVCodecContext *avctx) avctx->frame_size = samples_input / avctx->channels; avctx->coded_frame= avcodec_alloc_frame(); - avctx->coded_frame->key_frame= 1; /* Set decoder specific info */ avctx->extradata_size = 0; diff --git a/libavcodec/libgsm.c b/libavcodec/libgsm.c index 1fa04cf9d9..b917cc374d 100644 --- a/libavcodec/libgsm.c +++ b/libavcodec/libgsm.c @@ -70,7 +70,6 @@ static av_cold int libgsm_encode_init(AVCodecContext *avctx) { } avctx->coded_frame= avcodec_alloc_frame(); - avctx->coded_frame->key_frame= 1; return 0; } diff --git a/libavcodec/libvorbis.c b/libavcodec/libvorbis.c index 4d58fdc34e..b60b1f0670 100644 --- a/libavcodec/libvorbis.c +++ b/libavcodec/libvorbis.c @@ -156,7 +156,6 @@ static av_cold int oggvorbis_encode_init(AVCodecContext *avccontext) avccontext->frame_size = OGGVORBIS_FRAME_SIZE; avccontext->coded_frame = avcodec_alloc_frame(); - avccontext->coded_frame->key_frame = 1; return 0; } diff --git a/libavcodec/mpegaudioenc.c b/libavcodec/mpegaudioenc.c index 71ea39373e..d2b1e70900 100644 --- a/libavcodec/mpegaudioenc.c +++ b/libavcodec/mpegaudioenc.c @@ -181,7 +181,6 @@ static av_cold int MPA_encode_init(AVCodecContext *avctx) } avctx->coded_frame= avcodec_alloc_frame(); - avctx->coded_frame->key_frame= 1; return 0; } diff --git a/libavcodec/pcm.c b/libavcodec/pcm.c index 594bd444fe..2e0b5ec4b0 100644 --- a/libavcodec/pcm.c +++ b/libavcodec/pcm.c @@ -49,7 +49,6 @@ static av_cold int pcm_encode_init(AVCodecContext *avctx) avctx->bits_per_coded_sample = av_get_bits_per_sample(avctx->codec->id); avctx->block_align = avctx->channels * avctx->bits_per_coded_sample/8; avctx->coded_frame= avcodec_alloc_frame(); - avctx->coded_frame->key_frame= 1; return 0; } diff --git a/libavcodec/roqaudioenc.c b/libavcodec/roqaudioenc.c index e540e14c24..e2d0f3896e 100644 --- a/libavcodec/roqaudioenc.c +++ b/libavcodec/roqaudioenc.c @@ -59,7 +59,6 @@ static av_cold int roq_dpcm_encode_init(AVCodecContext *avctx) context->lastSample[0] = context->lastSample[1] = 0; avctx->coded_frame= avcodec_alloc_frame(); - avctx->coded_frame->key_frame= 1; return 0; }