Browse Source

lavc: do not set coded_frame->reference

That field is deprecated.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
tags/n2.0
Paul B Mahol 12 years ago
parent
commit
4853b5538f
6 changed files with 0 additions and 6 deletions
  1. +0
    -1
      libavcodec/avuienc.c
  2. +0
    -1
      libavcodec/r210enc.c
  3. +0
    -1
      libavcodec/v308enc.c
  4. +0
    -1
      libavcodec/v408enc.c
  5. +0
    -1
      libavcodec/y41penc.c
  6. +0
    -1
      libavcodec/yuv4enc.c

+ 0
- 1
libavcodec/avuienc.c View 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;



+ 0
- 1
libavcodec/r210enc.c View 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];


+ 0
- 1
libavcodec/v308enc.c View 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;



+ 0
- 1
libavcodec/v408enc.c View 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;



+ 0
- 1
libavcodec/y41penc.c View 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;


+ 0
- 1
libavcodec/yuv4enc.c View 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;



Loading…
Cancel
Save