sunrastenc: do not set avctx->coded_frame
authorPaul B Mahol <onemda@gmail.com>
Fri, 26 Jul 2013 14:16:42 +0000 (14:16 +0000)
committerPaul B Mahol <onemda@gmail.com>
Wed, 31 Jul 2013 20:01:43 +0000 (20:01 +0000)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavcodec/sunrastenc.c

index 2c7e72f..7b0ffb3 100644 (file)
@@ -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;