OSDN Git Service

lavc: do not set coded_frame->reference
authorPaul B Mahol <onemda@gmail.com>
Thu, 14 Mar 2013 09:45:40 +0000 (09:45 +0000)
committerPaul B Mahol <onemda@gmail.com>
Thu, 14 Mar 2013 09:47:47 +0000 (09:47 +0000)
That field is deprecated.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavcodec/avuienc.c
libavcodec/r210enc.c
libavcodec/v308enc.c
libavcodec/v408enc.c
libavcodec/y41penc.c
libavcodec/yuv4enc.c

index 4428232..a4970a0 100644 (file)
@@ -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;
 
index 39069ab..e19a27e 100644 (file)
@@ -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];
index 7a0ca40..10437cc 100644 (file)
@@ -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;
 
index 9b0ebce..694bdbf 100644 (file)
@@ -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;
 
index f0c212b..1a8f0fb 100644 (file)
@@ -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;
index 340310a..6e2f9bc 100644 (file)
@@ -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;