summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2015-07-30 16:14:23 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2015-07-30 16:14:23 +0200
commit77d8fd5c9c1d71b3995262dd737b248432ef5e3a (patch)
tree0143c63198f53c9e6e7d0dddf0af008c7c6b024c
parent9ebffc5bba362df9d13b43fe3e37d6b2860b7803 (diff)
downloadffmpeg-streaming-77d8fd5c9c1d71b3995262dd737b248432ef5e3a.zip
ffmpeg-streaming-77d8fd5c9c1d71b3995262dd737b248432ef5e3a.tar.gz
avcodec/y41penc: Drop coded_frame usage
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavcodec/y41penc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/y41penc.c b/libavcodec/y41penc.c
index 0645d27..94acc34 100644
--- a/libavcodec/y41penc.c
+++ b/libavcodec/y41penc.c
@@ -45,8 +45,6 @@ static int y41p_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
if ((ret = ff_alloc_packet2(avctx, pkt, avctx->width * avctx->height * 1.5, 0)) < 0)
return ret;
- avctx->coded_frame->key_frame = 1;
- avctx->coded_frame->pict_type = AV_PICTURE_TYPE_I;
dst = pkt->data;
for (i = avctx->height - 1; i >= 0; i--) {
@@ -91,4 +89,5 @@ AVCodec ff_y41p_encoder = {
.close = y41p_encode_close,
.pix_fmts = (const enum AVPixelFormat[]) { AV_PIX_FMT_YUV411P,
AV_PIX_FMT_NONE },
+ .capabilities = AV_CODEC_CAP_INTRA_ONLY,
};
OpenPOWER on IntegriCloud