Showing the changes to libavformat (1 of 1 file). Show all
Unified · Split
| @@ -42,7 +42,7 @@ static int g726_read_header(AVFormatContext *s) · 41 unmodified lines | ||
| 42 | 42 | st->codecpar->sample_rate = c->sample_rate; |
| 43 | 43 | st->codecpar->bits_per_coded_sample = c->code_size; |
| 44 | 44 | st->codecpar->bit_rate = ((int[]){ 16000, 24000, 32000, 40000 })[c->code_size - 2]; |
| 45 | − st->codecpar->channels = 1; | |
| 45 | + st->codecpar->ch_layout.nb_channels = 1; | |
| 46 | 46 | |
| 47 | 47 | return 0; |
| 48 | 48 | } |