g726: convert to new channel layout API

Signed-off-by: James Almer <jamrial@gmail.com>
release/5.1
Anton Khirnov 6 years ago committed by James Almer
parent f17932faf5
commit 972763ef45
  1. 2
      libavformat/g726.c

@ -42,7 +42,7 @@ static int g726_read_header(AVFormatContext *s)
st->codecpar->sample_rate = c->sample_rate;
st->codecpar->bits_per_coded_sample = c->code_size;
st->codecpar->bit_rate = ((int[]){ 16000, 24000, 32000, 40000 })[c->code_size - 2];
st->codecpar->channels = 1;
st->codecpar->ch_layout.nb_channels = 1;
return 0;
}

Loading…
Cancel
Save