mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 03:59:43 +00:00
avcodec/v308enc: Remove coded_frame usage
coded_frame is deprecated Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
2d80de0be2
commit
a0123b6023
@ -45,9 +45,6 @@ static int v308_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
|
||||
return ret;
|
||||
dst = pkt->data;
|
||||
|
||||
avctx->coded_frame->key_frame = 1;
|
||||
avctx->coded_frame->pict_type = AV_PICTURE_TYPE_I;
|
||||
|
||||
y = pic->data[0];
|
||||
u = pic->data[1];
|
||||
v = pic->data[2];
|
||||
@ -82,4 +79,5 @@ AVCodec ff_v308_encoder = {
|
||||
.encode2 = v308_encode_frame,
|
||||
.close = v308_encode_close,
|
||||
.pix_fmts = (const enum AVPixelFormat[]){ AV_PIX_FMT_YUV444P, AV_PIX_FMT_NONE },
|
||||
.capabilities = AV_CODEC_CAP_INTRA_ONLY,
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user