[FFmpeg-cvslog] lavc: do not set coded_frame->reference
Paul B Mahol
git at videolan.org
Thu Mar 14 10:52:30 CET 2013
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Thu Mar 14 09:45:40 2013 +0000| [4853b5538f416ba4d519244fde8c14f2ff75e07b] | committer: Paul B Mahol
lavc: do not set coded_frame->reference
That field is deprecated.
Signed-off-by: Paul B Mahol <onemda at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4853b5538f416ba4d519244fde8c14f2ff75e07b
---
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 4428232..a4970a0 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 39069ab..e19a27e 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 7a0ca40..10437cc 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 9b0ebce..694bdbf 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 f0c212b..1a8f0fb 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 340310a..6e2f9bc 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;
More information about the ffmpeg-cvslog
mailing list