aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2015-07-30 15:54:45 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2015-07-30 15:54:45 +0200
commita0123b602364a3e036683947b2642cbcd68e6f48 (patch)
tree2b0359dcde1bc8278c35fbb0b039cca212f990b3
parent2d80de0be2b85111b3f007e4d57c101a46eed707 (diff)
downloadffmpeg-a0123b602364a3e036683947b2642cbcd68e6f48.tar.gz
avcodec/v308enc: Remove coded_frame usage
coded_frame is deprecated Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavcodec/v308enc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libavcodec/v308enc.c b/libavcodec/v308enc.c
index 4331ec129f..b60a72cee6 100644
--- a/libavcodec/v308enc.c
+++ b/libavcodec/v308enc.c
@@ -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,
};