mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-25 08:42:39 +00:00
sdr2: convert to new channel layout API
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
ca36f0ece8
commit
3c659bc43e
@ -54,7 +54,7 @@ static int sdr2_read_header(AVFormatContext *s)
|
||||
ffstream(st)->need_parsing = AVSTREAM_PARSE_FULL;
|
||||
|
||||
ast->codecpar->codec_type = AVMEDIA_TYPE_AUDIO;
|
||||
ast->codecpar->channels = 1;
|
||||
ast->codecpar->ch_layout.nb_channels = 1;
|
||||
ast->codecpar->sample_rate = 8000;
|
||||
ast->codecpar->codec_id = AV_CODEC_ID_PCM_S16LE;
|
||||
avpriv_set_pts_info(ast, 64, 1, 8000);
|
||||
|
Loading…
Reference in New Issue
Block a user