aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2013-03-14 09:45:40 +0000
committerPaul B Mahol <onemda@gmail.com>2013-03-14 09:47:47 +0000
commit4853b5538f416ba4d519244fde8c14f2ff75e07b (patch)
tree20039a52334e3c98ad56ed69de4ddea69a4a5d1a
parentfe898a037d99108b3d2ca29bb1d69887566d278d (diff)
downloadffmpeg-4853b5538f416ba4d519244fde8c14f2ff75e07b.tar.gz
lavc: do not set coded_frame->reference
That field is deprecated. Signed-off-by: Paul B Mahol <onemda@gmail.com>
-rw-r--r--libavcodec/avuienc.c1
-rw-r--r--libavcodec/r210enc.c1
-rw-r--r--libavcodec/v308enc.c1
-rw-r--r--libavcodec/v408enc.c1
-rw-r--r--libavcodec/y41penc.c1
-rw-r--r--libavcodec/yuv4enc.c1
6 files changed, 0 insertions, 6 deletions
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;