[FFmpeg-cvslog] adxenc: remove unnecessary setting of coded_frame->key_frame.

Justin Ruggles git at videolan.org
Thu Jan 5 02:18:49 CET 2012


ffmpeg | branch: master | Justin Ruggles <justin.ruggles at gmail.com> | Mon Dec 19 09:45:50 2011 -0500| [6b77f07074bfdba7106fdbf20106da7d8522655a] | committer: Justin Ruggles

adxenc: remove unnecessary setting of coded_frame->key_frame.

It is already set by avcodec_alloc_frame().

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6b77f07074bfdba7106fdbf20106da7d8522655a
---

 libavcodec/adxenc.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/libavcodec/adxenc.c b/libavcodec/adxenc.c
index a580bb3..43f7801 100644
--- a/libavcodec/adxenc.c
+++ b/libavcodec/adxenc.c
@@ -108,7 +108,6 @@ static av_cold int adx_encode_init(AVCodecContext *avctx)
     avctx->frame_size = 32;
 
     avctx->coded_frame = avcodec_alloc_frame();
-    avctx->coded_frame->key_frame = 1;
 
     /* the cutoff can be adjusted, but this seems to work pretty well */
     c->cutoff = 500;



More information about the ffmpeg-cvslog mailing list