[FFmpeg-cvslog] avcodec/yuv4enc: drop coded_frame usage

Michael Niedermayer git at videolan.org
Thu Jul 30 16:22:24 CEST 2015


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Thu Jul 30 16:14:06 2015 +0200| [9ebffc5bba362df9d13b43fe3e37d6b2860b7803] | committer: Michael Niedermayer

avcodec/yuv4enc: drop coded_frame usage

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9ebffc5bba362df9d13b43fe3e37d6b2860b7803
---

 libavcodec/yuv4enc.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/libavcodec/yuv4enc.c b/libavcodec/yuv4enc.c
index 17c670f..cc8846d 100644
--- a/libavcodec/yuv4enc.c
+++ b/libavcodec/yuv4enc.c
@@ -39,9 +39,6 @@ static int yuv4_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];
@@ -79,4 +76,5 @@ AVCodec ff_yuv4_encoder = {
     .encode2      = yuv4_encode_frame,
     .close        = yuv4_encode_close,
     .pix_fmts     = (const enum AVPixelFormat[]){ AV_PIX_FMT_YUV420P, AV_PIX_FMT_NONE },
+    .capabilities = AV_CODEC_CAP_INTRA_ONLY,
 };



More information about the ffmpeg-cvslog mailing list