diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2012-02-16 04:11:06 +0400 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2012-02-25 20:49:41 +0400 |
commit | 255ad8881db0fa937e3632c4937f23d29d0e423d (patch) | |
tree | 4e43c1e62f06f2c370fbd26b1560aff743588ba8 | |
parent | 8e2555d3b1855374707a4d53bf93d3e07d61e05c (diff) |
audio encoders: do not set coded_frame->key_frame.
it is already set in avcodec_alloc_frame()
-rw-r--r-- | libavcodec/libfaac.c | 1 | ||||
-rw-r--r-- | libavcodec/libgsm.c | 1 | ||||
-rw-r--r-- | libavcodec/libvorbis.c | 1 | ||||
-rw-r--r-- | libavcodec/mpegaudioenc.c | 1 | ||||
-rw-r--r-- | libavcodec/pcm.c | 1 | ||||
-rw-r--r-- | libavcodec/roqaudioenc.c | 1 |
6 files changed, 0 insertions, 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; } |