diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2015-07-30 15:53:54 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2015-07-30 15:53:54 +0200 |
commit | 2d80de0be2b85111b3f007e4d57c101a46eed707 (patch) | |
tree | e4ccc0ae2bdcbc72140555c1f8558e6c810891b2 | |
parent | 92e62f49cf7440a9e8998d284528e223c0948c97 (diff) | |
download | ffmpeg-2d80de0be2b85111b3f007e4d57c101a46eed707.tar.gz |
avcodec/v408enc: remove coded_frame usage
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | libavcodec/v408enc.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libavcodec/v408enc.c b/libavcodec/v408enc.c index 14ca619dc1..f37f360b73 100644 --- a/libavcodec/v408enc.c +++ b/libavcodec/v408enc.c @@ -41,9 +41,6 @@ static int v408_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]; @@ -89,6 +86,7 @@ AVCodec ff_ayuv_encoder = { .encode2 = v408_encode_frame, .close = v408_encode_close, .pix_fmts = (const enum AVPixelFormat[]){ AV_PIX_FMT_YUVA444P, AV_PIX_FMT_NONE }, + .capabilities = AV_CODEC_CAP_INTRA_ONLY, }; #endif #if CONFIG_V408_ENCODER @@ -101,5 +99,6 @@ AVCodec ff_v408_encoder = { .encode2 = v408_encode_frame, .close = v408_encode_close, .pix_fmts = (const enum AVPixelFormat[]){ AV_PIX_FMT_YUVA444P, AV_PIX_FMT_NONE }, + .capabilities = AV_CODEC_CAP_INTRA_ONLY, }; #endif |