From 4853b5538f416ba4d519244fde8c14f2ff75e07b Mon Sep 17 00:00:00 2001
From: Paul B Mahol <onemda@gmail.com>
Date: Thu, 14 Mar 2013 09:45:40 +0000
Subject: [PATCH] lavc: do not set coded_frame->reference

That field is deprecated.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
---
 libavcodec/avuienc.c | 1 -
 libavcodec/r210enc.c | 1 -
 libavcodec/v308enc.c | 1 -
 libavcodec/v408enc.c | 1 -
 libavcodec/y41penc.c | 1 -
 libavcodec/yuv4enc.c | 1 -
 6 files changed, 6 deletions(-)

diff --git a/libavcodec/avuienc.c b/libavcodec/avuienc.c
index 4428232c05a..a4970a0f66a 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 39069ab8e7b..e19a27e6699 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 7a0ca40576e..10437ccdfd7 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 9b0ebcea4a1..694bdbf4524 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 f0c212ba2ad..1a8f0fb8f95 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 340310a8ab1..6e2f9bc0db8 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;
 
-- 
GitLab