mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
siff: convert to new channel layout API
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
cd5b4d4ba7
commit
736a45f898
@ -80,8 +80,7 @@ static int create_audio_stream(AVFormatContext *s, SIFFContext *c)
|
||||
return AVERROR(ENOMEM);
|
||||
ast->codecpar->codec_type = AVMEDIA_TYPE_AUDIO;
|
||||
ast->codecpar->codec_id = AV_CODEC_ID_PCM_U8;
|
||||
ast->codecpar->channels = 1;
|
||||
ast->codecpar->channel_layout = AV_CH_LAYOUT_MONO;
|
||||
ast->codecpar->ch_layout = (AVChannelLayout)AV_CHANNEL_LAYOUT_MONO;
|
||||
ast->codecpar->bits_per_coded_sample = 8;
|
||||
ast->codecpar->sample_rate = c->rate;
|
||||
avpriv_set_pts_info(ast, 16, 1, c->rate);
|
||||
|
Loading…
Reference in New Issue
Block a user