Skip to content
  • Thomas Guillem's avatar
    avcodec/audio: fix inconsistent sample rate · e49b4caf
    Thomas Guillem authored
    The sample rate was only initialized during opening because the
    (fmt_out.audio.i_rate != ctx->sample_rate) check was always false after the
    SetupOutputFormat() call. To fix this issue, move SetupOutputFormat() after a
    successfull call to avcodec_receive_frame() and after the date_Init() check.
    e49b4caf