Module: libav
Branch: master
Commit: 255ad8881db0fa937e3632c4937f23d29d0e423d

Author:    Justin Ruggles <[email protected]>
Committer: Justin Ruggles <[email protected]>
Date:      Wed Feb 15 19:11:06 2012 -0500

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, 0 insertions(+), 6 deletions(-)

diff --git a/libavcodec/libfaac.c b/libavcodec/libfaac.c
index 7ee1f3c..997aa83 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 1fa04cf..b917cc3 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 4d58fdc..b60b1f0 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 71ea393..d2b1e70 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 594bd44..2e0b5ec 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 e540e14..e2d0f38 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;
 }

_______________________________________________
libav-commits mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-commits

Reply via email to