audio encoders: do not set coded_frame->key_frame.

it is already set in avcodec_alloc_frame()
pull/3/merge
Justin Ruggles 13 years ago
parent 8e2555d3b1
commit 255ad8881d
  1. 1
      libavcodec/libfaac.c
  2. 1
      libavcodec/libgsm.c
  3. 1
      libavcodec/libvorbis.c
  4. 1
      libavcodec/mpegaudioenc.c
  5. 1
      libavcodec/pcm.c
  6. 1
      libavcodec/roqaudioenc.c

@ -90,7 +90,6 @@ static av_cold int Faac_encode_init(AVCodecContext *avctx)
avctx->frame_size = samples_input / avctx->channels;
avctx->coded_frame= avcodec_alloc_frame();
avctx->coded_frame->key_frame= 1;
/* Set decoder specific info */
avctx->extradata_size = 0;

@ -70,7 +70,6 @@ static av_cold int libgsm_encode_init(AVCodecContext *avctx) {
}
avctx->coded_frame= avcodec_alloc_frame();
avctx->coded_frame->key_frame= 1;
return 0;
}

@ -156,7 +156,6 @@ static av_cold int oggvorbis_encode_init(AVCodecContext *avccontext)
avccontext->frame_size = OGGVORBIS_FRAME_SIZE;
avccontext->coded_frame = avcodec_alloc_frame();
avccontext->coded_frame->key_frame = 1;
return 0;
}

@ -181,7 +181,6 @@ static av_cold int MPA_encode_init(AVCodecContext *avctx)
}
avctx->coded_frame= avcodec_alloc_frame();
avctx->coded_frame->key_frame= 1;
return 0;
}

@ -49,7 +49,6 @@ static av_cold int pcm_encode_init(AVCodecContext *avctx)
avctx->bits_per_coded_sample = av_get_bits_per_sample(avctx->codec->id);
avctx->block_align = avctx->channels * avctx->bits_per_coded_sample/8;
avctx->coded_frame= avcodec_alloc_frame();
avctx->coded_frame->key_frame= 1;
return 0;
}

@ -59,7 +59,6 @@ static av_cold int roq_dpcm_encode_init(AVCodecContext *avctx)
context->lastSample[0] = context->lastSample[1] = 0;
avctx->coded_frame= avcodec_alloc_frame();
avctx->coded_frame->key_frame= 1;
return 0;
}

Loading…
Cancel
Save