aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2015-07-30 19:57:07 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2015-07-30 19:57:07 +0200
commitdfe8e3b3819d90999d3ad6c0c37f7bb0862f414a (patch)
tree3851f31470d6cdf2cfcc2263a709dd701b0a08ff
parentbc4bdc6d61527e9e1bd2ff6d39ee68eac68ff9de (diff)
downloadffmpeg-dfe8e3b3819d90999d3ad6c0c37f7bb0862f414a.tar.gz
avcodec/avuienc: Drop coded_frame usage
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavcodec/avuienc.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/libavcodec/avuienc.c b/libavcodec/avuienc.c
index 281c2c1a87..77d5538e20 100644
--- a/libavcodec/avuienc.c
+++ b/libavcodec/avuienc.c
@@ -70,9 +70,6 @@ static int avui_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
dst += avctx->width * skip;
}
- avctx->coded_frame->key_frame = 1;
- avctx->coded_frame->pict_type = AV_PICTURE_TYPE_I;
-
for (i = 0; i <= interlaced; i++) {
uint8_t *src;
if (interlaced && avctx->height == 486) {
@@ -101,6 +98,6 @@ AVCodec ff_avui_encoder = {
.id = AV_CODEC_ID_AVUI,
.init = avui_encode_init,
.encode2 = avui_encode_frame,
- .capabilities = AV_CODEC_CAP_EXPERIMENTAL,
+ .capabilities = AV_CODEC_CAP_EXPERIMENTAL | AV_CODEC_CAP_INTRA_ONLY,
.pix_fmts = (const enum AVPixelFormat[]){ AV_PIX_FMT_UYVY422, AV_PIX_FMT_NONE },
};