Browse Source

Remove superfluous setting of has_b_frames in codecs without B-frames.

patch by Nicholas Tung, ntung ntung com

Originally committed as revision 8647 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Nicholas Tung Diego Biurrun 18 years ago
parent
commit
587d07227e
27 changed files with 0 additions and 27 deletions
  1. +0
    -1
      libavcodec/8bps.c
  2. +0
    -1
      libavcodec/cinepak.c
  3. +0
    -1
      libavcodec/cscd.c
  4. +0
    -1
      libavcodec/cyuv.c
  5. +0
    -1
      libavcodec/dsicinav.c
  6. +0
    -1
      libavcodec/flashsv.c
  7. +0
    -1
      libavcodec/flicvideo.c
  8. +0
    -1
      libavcodec/fraps.c
  9. +0
    -1
      libavcodec/idcinvideo.c
  10. +0
    -1
      libavcodec/indeo3.c
  11. +0
    -1
      libavcodec/interplayvideo.c
  12. +0
    -1
      libavcodec/lcl.c
  13. +0
    -1
      libavcodec/mmvideo.c
  14. +0
    -1
      libavcodec/msrle.c
  15. +0
    -1
      libavcodec/msvideo1.c
  16. +0
    -1
      libavcodec/nuv.c
  17. +0
    -1
      libavcodec/qtrle.c
  18. +0
    -1
      libavcodec/roqvideo.c
  19. +0
    -1
      libavcodec/rpza.c
  20. +0
    -1
      libavcodec/smacker.c
  21. +0
    -1
      libavcodec/smc.c
  22. +0
    -1
      libavcodec/tiertexseqv.c
  23. +0
    -1
      libavcodec/truemotion1.c
  24. +0
    -1
      libavcodec/vmdav.c
  25. +0
    -1
      libavcodec/vp3.c
  26. +0
    -1
      libavcodec/vqavideo.c
  27. +0
    -1
      libavcodec/xan.c

+ 0
- 1
libavcodec/8bps.c View File

@@ -155,7 +155,6 @@ static int decode_init(AVCodecContext *avctx)
EightBpsContext * const c = (EightBpsContext *)avctx->priv_data;

c->avctx = avctx;
avctx->has_b_frames = 0;

c->pic.data[0] = NULL;



+ 0
- 1
libavcodec/cinepak.c View File

@@ -407,7 +407,6 @@ static int cinepak_decode_init(AVCodecContext *avctx)
avctx->pix_fmt = PIX_FMT_PAL8;
}

avctx->has_b_frames = 0;
dsputil_init(&s->dsp, avctx);

s->frame.data[0] = NULL;


+ 0
- 1
libavcodec/cscd.c View File

@@ -218,7 +218,6 @@ static int decode_init(AVCodecContext *avctx) {
if (avcodec_check_dimensions(avctx, avctx->height, avctx->width) < 0) {
return 1;
}
avctx->has_b_frames = 0;
switch (avctx->bits_per_sample) {
case 16: avctx->pix_fmt = PIX_FMT_RGB555; break;
case 24: avctx->pix_fmt = PIX_FMT_BGR24; break;


+ 0
- 1
libavcodec/cyuv.c View File

@@ -58,7 +58,6 @@ static int cyuv_decode_init(AVCodecContext *avctx)
return -1;
s->height = avctx->height;
avctx->pix_fmt = PIX_FMT_YUV411P;
avctx->has_b_frames = 0;

return 0;
}


+ 0
- 1
libavcodec/dsicinav.c View File

@@ -93,7 +93,6 @@ static int cinvideo_decode_init(AVCodecContext *avctx)

cin->avctx = avctx;
avctx->pix_fmt = PIX_FMT_PAL8;
avctx->has_b_frames = 0;

cin->frame.data[0] = NULL;



+ 0
- 1
libavcodec/flashsv.c View File

@@ -95,7 +95,6 @@ static int flashsv_decode_init(AVCodecContext *avctx)
return 1;
}
avctx->pix_fmt = PIX_FMT_BGR24;
avctx->has_b_frames = 0;
s->frame.data[0] = NULL;

return 0;


+ 0
- 1
libavcodec/flicvideo.c View File

@@ -85,7 +85,6 @@ static int flic_decode_init(AVCodecContext *avctx)
int depth;

s->avctx = avctx;
avctx->has_b_frames = 0;

s->fli_type = AV_RL16(&fli_header[4]); /* Might be overridden if a Magic Carpet FLC */
depth = AV_RL16(&fli_header[12]);


+ 0
- 1
libavcodec/fraps.c View File

@@ -73,7 +73,6 @@ static int decode_init(AVCodecContext *avctx)
FrapsContext * const s = avctx->priv_data;

avctx->coded_frame = (AVFrame*)&s->frame;
avctx->has_b_frames = 0;
avctx->pix_fmt= PIX_FMT_NONE; /* set in decode_frame */

s->avctx = avctx;


+ 0
- 1
libavcodec/idcinvideo.c View File

@@ -155,7 +155,6 @@ static int idcin_decode_init(AVCodecContext *avctx)

s->avctx = avctx;
avctx->pix_fmt = PIX_FMT_PAL8;
avctx->has_b_frames = 0;
dsputil_init(&s->dsp, avctx);

/* make sure the Huffman tables make it */


+ 0
- 1
libavcodec/indeo3.c View File

@@ -1066,7 +1066,6 @@ static int indeo3_decode_init(AVCodecContext *avctx)
s->width = avctx->width;
s->height = avctx->height;
avctx->pix_fmt = PIX_FMT_YUV410P;
avctx->has_b_frames = 0;

build_modpred(s);
iv_alloc_frames(s);


+ 0
- 1
libavcodec/interplayvideo.c View File

@@ -865,7 +865,6 @@ static int ipvideo_decode_init(AVCodecContext *avctx)
}

avctx->pix_fmt = PIX_FMT_PAL8;
avctx->has_b_frames = 0;
dsputil_init(&s->dsp, avctx);

/* decoding map contains 4 bits of information per 8x8 block */


+ 0
- 1
libavcodec/lcl.c View File

@@ -624,7 +624,6 @@ static int decode_init(AVCodecContext *avctx)
int zret; // Zlib return code

c->avctx = avctx;
avctx->has_b_frames = 0;

c->pic.data[0] = NULL;



+ 0
- 1
libavcodec/mmvideo.c View File

@@ -59,7 +59,6 @@ static int mm_decode_init(AVCodecContext *avctx)
}

avctx->pix_fmt = PIX_FMT_PAL8;
avctx->has_b_frames = 0;

if (avcodec_check_dimensions(avctx, avctx->width, avctx->height))
return -1;


+ 0
- 1
libavcodec/msrle.c View File

@@ -244,7 +244,6 @@ static int msrle_decode_init(AVCodecContext *avctx)
s->avctx = avctx;

avctx->pix_fmt = PIX_FMT_PAL8;
avctx->has_b_frames = 0;
s->frame.data[0] = NULL;

return 0;


+ 0
- 1
libavcodec/msvideo1.c View File

@@ -76,7 +76,6 @@ static int msvideo1_decode_init(AVCodecContext *avctx)
avctx->pix_fmt = PIX_FMT_RGB555;
}

avctx->has_b_frames = 0;
dsputil_init(&s->dsp, avctx);

s->frame.data[0] = NULL;


+ 0
- 1
libavcodec/nuv.c View File

@@ -176,7 +176,6 @@ static int decode_init(AVCodecContext *avctx) {
if (avcodec_check_dimensions(avctx, avctx->height, avctx->width) < 0) {
return 1;
}
avctx->has_b_frames = 0;
avctx->pix_fmt = PIX_FMT_YUV420P;
c->pic.data[0] = NULL;
c->width = avctx->width;


+ 0
- 1
libavcodec/qtrle.c View File

@@ -523,7 +523,6 @@ static int qtrle_decode_init(AVCodecContext *avctx)
avctx->bits_per_sample);
break;
}
avctx->has_b_frames = 0;
dsputil_init(&s->dsp, avctx);

s->frame.data[0] = NULL;


+ 0
- 1
libavcodec/roqvideo.c View File

@@ -411,7 +411,6 @@ static int roq_decode_init(AVCodecContext *avctx)
s->last_frame = &s->frames[0];
s->current_frame = &s->frames[1];
avctx->pix_fmt = PIX_FMT_YUV420P;
avctx->has_b_frames = 0;
dsputil_init(&s->dsp, avctx);

uiclp = uiclip+512;


+ 0
- 1
libavcodec/rpza.c View File

@@ -236,7 +236,6 @@ static int rpza_decode_init(AVCodecContext *avctx)

s->avctx = avctx;
avctx->pix_fmt = PIX_FMT_RGB555;
avctx->has_b_frames = 0;
dsputil_init(&s->dsp, avctx);

s->frame.data[0] = NULL;


+ 0
- 1
libavcodec/smacker.c View File

@@ -518,7 +518,6 @@ static int decode_init(AVCodecContext *avctx)
SmackVContext * const c = (SmackVContext *)avctx->priv_data;

c->avctx = avctx;
avctx->has_b_frames = 0;

c->pic.data[0] = NULL;



+ 0
- 1
libavcodec/smc.c View File

@@ -436,7 +436,6 @@ static int smc_decode_init(AVCodecContext *avctx)

s->avctx = avctx;
avctx->pix_fmt = PIX_FMT_PAL8;
avctx->has_b_frames = 0;
dsputil_init(&s->dsp, avctx);

s->frame.data[0] = NULL;


+ 0
- 1
libavcodec/tiertexseqv.c View File

@@ -180,7 +180,6 @@ static int seqvideo_decode_init(AVCodecContext *avctx)

seq->avctx = avctx;
avctx->pix_fmt = PIX_FMT_PAL8;
avctx->has_b_frames = 0;

seq->frame.data[0] = NULL;



+ 0
- 1
libavcodec/truemotion1.c View File

@@ -475,7 +475,6 @@ static int truemotion1_decode_init(AVCodecContext *avctx)
// else
// avctx->pix_fmt = PIX_FMT_RGB555;

avctx->has_b_frames = 0;
s->frame.data[0] = s->prev_frame.data[0] = NULL;

/* there is a vertical predictor for each pixel in a line; each vertical


+ 0
- 1
libavcodec/vmdav.c View File

@@ -328,7 +328,6 @@ static int vmdvideo_decode_init(AVCodecContext *avctx)

s->avctx = avctx;
avctx->pix_fmt = PIX_FMT_PAL8;
avctx->has_b_frames = 0;
dsputil_init(&s->dsp, avctx);

/* make sure the VMD header made it */


+ 0
- 1
libavcodec/vp3.c View File

@@ -1955,7 +1955,6 @@ static int vp3_decode_init(AVCodecContext *avctx)
s->width = (avctx->width + 15) & 0xFFFFFFF0;
s->height = (avctx->height + 15) & 0xFFFFFFF0;
avctx->pix_fmt = PIX_FMT_YUV420P;
avctx->has_b_frames = 0;
if(avctx->idct_algo==FF_IDCT_AUTO)
avctx->idct_algo=FF_IDCT_VP3;
dsputil_init(&s->dsp, avctx);


+ 0
- 1
libavcodec/vqavideo.c View File

@@ -139,7 +139,6 @@ static int vqa_decode_init(AVCodecContext *avctx)

s->avctx = avctx;
avctx->pix_fmt = PIX_FMT_PAL8;
avctx->has_b_frames = 0;
dsputil_init(&s->dsp, avctx);

/* make sure the extradata made it */


+ 0
- 1
libavcodec/xan.c View File

@@ -70,7 +70,6 @@ static int xan_decode_init(AVCodecContext *avctx)
}

avctx->pix_fmt = PIX_FMT_PAL8;
avctx->has_b_frames = 0;

if(avcodec_check_dimensions(avctx, avctx->width, avctx->height))
return -1;


Loading…
Cancel
Save