diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2017-04-04 15:41:55 +0200 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2022-03-15 09:42:37 -0300 |
commit | 525ccbe8f13b1552df4bc9e172ec89101976b185 (patch) | |
tree | 74a0e35fab438c38689d4369ccd6935837c5b81a /libavformat/segafilmenc.c | |
parent | 81b3ebbae9b42425b524b8ea413845a09e99f578 (diff) | |
download | ffmpeg-525ccbe8f13b1552df4bc9e172ec89101976b185.tar.gz |
segafilm: convert to new channel layout API
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/segafilmenc.c')
-rw-r--r-- | libavformat/segafilmenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/segafilmenc.c b/libavformat/segafilmenc.c index 737805faa6..7a412fe9cc 100644 --- a/libavformat/segafilmenc.c +++ b/libavformat/segafilmenc.c @@ -236,7 +236,7 @@ static int film_write_header(AVFormatContext *format_context) AVStream *audio = format_context->streams[film->audio_index]; int audio_codec = get_audio_codec_id(audio->codecpar->codec_id); - bytestream_put_byte(&ptr, audio->codecpar->channels); /* Audio channels */ + bytestream_put_byte(&ptr, audio->codecpar->ch_layout.nb_channels); /* Audio channels */ bytestream_put_byte(&ptr, audio->codecpar->bits_per_coded_sample); /* Audio bit depth */ bytestream_put_byte(&ptr, audio_codec); /* Compression - 0 is PCM, 2 is ADX */ bytestream_put_be16(&ptr, audio->codecpar->sample_rate); /* Audio sampling rate */ |