History

sds: convert to new channel layout API

Anton Khirnov committed 7 years ago

Commit e968ae81 parent 3c659bc1 file · +1 −1Browse files

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

Unified · Split

libavformat/sdsdec.c+1−1
@@ -110,7 +110,7 @@ static int sds_read_header(AVFormatContext *ctx) · 109 unmodified lines
110 avio_skip(pb, 11);110 avio_skip(pb, 11);
111 111
112 st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO;112 st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO;
113 st->codecpar->channels = 1;113 st->codecpar->ch_layout.nb_channels = 1;
114 st->codecpar->sample_rate = sample_period ? 1000000000 / sample_period : 16000;114 st->codecpar->sample_rate = sample_period ? 1000000000 / sample_period : 16000;
115 st->duration = (avio_size(pb) - 21) / (127) * s->size / 4;115 st->duration = (avio_size(pb) - 21) / (127) * s->size / 4;
116 116

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