[FFmpeg-cvslog] sunrastenc: do not set avctx->coded_frame

Paul B Mahol git at videolan.org
Wed Jul 31 22:03:29 CEST 2013


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Fri Jul 26 14:16:42 2013 +0000| [fe3755124953d2c5351f8023a404e71d0f0bbeb5] | committer: Paul B Mahol

sunrastenc: do not set avctx->coded_frame

Signed-off-by: Paul B Mahol <onemda at gmail.com>

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

 libavcodec/sunrastenc.c |    4 ----
 1 file changed, 4 deletions(-)

diff --git a/libavcodec/sunrastenc.c b/libavcodec/sunrastenc.c
index 2c7e72f..7b0ffb3 100644
--- a/libavcodec/sunrastenc.c
+++ b/libavcodec/sunrastenc.c
@@ -25,7 +25,6 @@
 #include "sunrast.h"
 
 typedef struct SUNRASTContext {
-    AVFrame picture;
     PutByteContext p;
     int depth;      ///< depth of pixel
     int length;     ///< length (bytes) of image
@@ -149,9 +148,6 @@ static av_cold int sunrast_encode_init(AVCodecContext *avctx)
         return AVERROR(EINVAL);
     }
 
-    avctx->coded_frame            = &s->picture;
-    avctx->coded_frame->key_frame = 1;
-    avctx->coded_frame->pict_type = AV_PICTURE_TYPE_I;
     s->maptype                    = RMT_NONE;
     s->maplength                  = 0;
 



More information about the ffmpeg-cvslog mailing list