diff --git a/libavcodec/avuienc.c b/libavcodec/avuienc.c index 4428232c05..a4970a0f66 100644 --- a/libavcodec/avuienc.c +++ b/libavcodec/avuienc.c @@ -70,7 +70,6 @@ static int avui_encode_frame(AVCodecContext *avctx, AVPacket *pkt, dst += avctx->width * skip; } - avctx->coded_frame->reference = 0; avctx->coded_frame->key_frame = 1; avctx->coded_frame->pict_type = AV_PICTURE_TYPE_I; diff --git a/libavcodec/r210enc.c b/libavcodec/r210enc.c index 39069ab8e7..e19a27e669 100644 --- a/libavcodec/r210enc.c +++ b/libavcodec/r210enc.c @@ -47,7 +47,6 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt, if ((ret = ff_alloc_packet2(avctx, pkt, 4 * aligned_width * avctx->height)) < 0) return ret; - avctx->coded_frame->reference = 0; avctx->coded_frame->key_frame = 1; avctx->coded_frame->pict_type = AV_PICTURE_TYPE_I; src_line = pic->data[0]; diff --git a/libavcodec/v308enc.c b/libavcodec/v308enc.c index 7a0ca40576..10437ccdfd 100644 --- a/libavcodec/v308enc.c +++ b/libavcodec/v308enc.c @@ -52,7 +52,6 @@ static int v308_encode_frame(AVCodecContext *avctx, AVPacket *pkt, return ret; dst = pkt->data; - avctx->coded_frame->reference = 0; avctx->coded_frame->key_frame = 1; avctx->coded_frame->pict_type = AV_PICTURE_TYPE_I; diff --git a/libavcodec/v408enc.c b/libavcodec/v408enc.c index 9b0ebcea4a..694bdbf452 100644 --- a/libavcodec/v408enc.c +++ b/libavcodec/v408enc.c @@ -47,7 +47,6 @@ static int v408_encode_frame(AVCodecContext *avctx, AVPacket *pkt, return ret; dst = pkt->data; - avctx->coded_frame->reference = 0; avctx->coded_frame->key_frame = 1; avctx->coded_frame->pict_type = AV_PICTURE_TYPE_I; diff --git a/libavcodec/y41penc.c b/libavcodec/y41penc.c index f0c212ba2a..1a8f0fb8f9 100644 --- a/libavcodec/y41penc.c +++ b/libavcodec/y41penc.c @@ -51,7 +51,6 @@ static int y41p_encode_frame(AVCodecContext *avctx, AVPacket *pkt, if ((ret = ff_alloc_packet2(avctx, pkt, avctx->width * avctx->height * 1.5)) < 0) return ret; - avctx->coded_frame->reference = 0; avctx->coded_frame->key_frame = 1; avctx->coded_frame->pict_type = AV_PICTURE_TYPE_I; dst = pkt->data; diff --git a/libavcodec/yuv4enc.c b/libavcodec/yuv4enc.c index 340310a8ab..6e2f9bc0db 100644 --- a/libavcodec/yuv4enc.c +++ b/libavcodec/yuv4enc.c @@ -46,7 +46,6 @@ static int yuv4_encode_frame(AVCodecContext *avctx, AVPacket *pkt, return ret; dst = pkt->data; - avctx->coded_frame->reference = 0; avctx->coded_frame->key_frame = 1; avctx->coded_frame->pict_type = AV_PICTURE_TYPE_I;