summaryrefslogtreecommitdiff
path: root/libavcodec/r210enc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2015-07-30 19:57:58 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2015-07-30 19:57:58 +0200
commit802e51299e6d018f2f54c8d14f2b765c7c750496 (patch)
tree1f95865165a9416c56a6417de6e0abbfd3bc523b /libavcodec/r210enc.c
parentdfe8e3b3819d90999d3ad6c0c37f7bb0862f414a (diff)
downloadffmpeg-802e51299e6d018f2f54c8d14f2b765c7c750496.tar.gz
avcodec/r210enc: Drop coded_frame usage
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/r210enc.c')
-rw-r--r--libavcodec/r210enc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libavcodec/r210enc.c b/libavcodec/r210enc.c
index 64aa33f557..65b3c069fc 100644
--- a/libavcodec/r210enc.c
+++ b/libavcodec/r210enc.c
@@ -37,8 +37,6 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
if ((ret = ff_alloc_packet2(avctx, pkt, 4 * aligned_width * avctx->height, 0)) < 0)
return ret;
- avctx->coded_frame->key_frame = 1;
- avctx->coded_frame->pict_type = AV_PICTURE_TYPE_I;
src_line = pic->data[0];
dst = pkt->data;
@@ -77,6 +75,7 @@ AVCodec ff_r210_encoder = {
.id = AV_CODEC_ID_R210,
.encode2 = encode_frame,
.pix_fmts = (const enum AVPixelFormat[]) { AV_PIX_FMT_RGB48, AV_PIX_FMT_NONE },
+ .capabilities = AV_CODEC_CAP_INTRA_ONLY,
};
#endif
#if CONFIG_R10K_ENCODER
@@ -87,6 +86,7 @@ AVCodec ff_r10k_encoder = {
.id = AV_CODEC_ID_R10K,
.encode2 = encode_frame,
.pix_fmts = (const enum AVPixelFormat[]) { AV_PIX_FMT_RGB48, AV_PIX_FMT_NONE },
+ .capabilities = AV_CODEC_CAP_INTRA_ONLY,
};
#endif
#if CONFIG_AVRP_ENCODER
@@ -97,5 +97,6 @@ AVCodec ff_avrp_encoder = {
.id = AV_CODEC_ID_AVRP,
.encode2 = encode_frame,
.pix_fmts = (const enum AVPixelFormat[]) { AV_PIX_FMT_RGB48, AV_PIX_FMT_NONE },
+ .capabilities = AV_CODEC_CAP_INTRA_ONLY,
};
#endif