History

g726: convert to new channel layout API

Anton Khirnov committed 7 years ago

Commit 972763e1 parent f17932f1 file · +1 −1Browse files

Showing the changes to libavformat (1 of 1 file). Show all

Unified · Split

libavformat/g726.c+1−1
@@ -42,7 +42,7 @@ static int g726_read_header(AVFormatContext *s) · 41 unmodified lines
4242 st->codecpar->sample_rate = c->sample_rate;
4343 st->codecpar->bits_per_coded_sample = c->code_size;
4444 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;
4646
4747 return 0;
4848 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t