mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-22 07:20:45 +00:00
sunrastenc: do not set avctx->coded_frame
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
678431d3f2
commit
fe37551249
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user