From: Anton Khirnov Date: Mon, 7 Jan 2013 10:39:56 +0000 (+0100) Subject: utvideoenc/v410enc: do not set AVFrame.reference. X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=231fd1ed3932909a259da6df52fa3f756646aa3e;p=ffmpeg utvideoenc/v410enc: do not set AVFrame.reference. That field will be deprecated. --- diff --git a/libavcodec/utvideoenc.c b/libavcodec/utvideoenc.c index 085c415caa5..0df3fb75d15 100644 --- a/libavcodec/utvideoenc.c +++ b/libavcodec/utvideoenc.c @@ -598,7 +598,6 @@ static int utvideo_encode_frame(AVCodecContext *avctx, AVPacket *pkt, * At least currently Ut Video is IDR only. * Set flags accordingly. */ - avctx->coded_frame->reference = 0; avctx->coded_frame->key_frame = 1; avctx->coded_frame->pict_type = AV_PICTURE_TYPE_I; diff --git a/libavcodec/v410enc.c b/libavcodec/v410enc.c index cc7cef7ea20..7bb70fd56a9 100644 --- a/libavcodec/v410enc.c +++ b/libavcodec/v410enc.c @@ -56,7 +56,6 @@ static int v410_encode_frame(AVCodecContext *avctx, AVPacket *pkt, } dst = pkt->data; - avctx->coded_frame->reference = 0; avctx->coded_frame->key_frame = 1; avctx->coded_frame->pict_type = AV_PICTURE_TYPE_I;