diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2017-03-31 18:32:59 +0200 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2022-03-15 09:42:37 -0300 |
commit | d371fe97bfad454a29e2f8ebed8d44db3d75c31e (patch) | |
tree | 2fa81f41c4c6c2503e4b9a151249aad4440266e4 /libavformat/smjpegenc.c | |
parent | 677fea79b794236a3d791120d0ba3c832caedb17 (diff) | |
download | ffmpeg-d371fe97bfad454a29e2f8ebed8d44db3d75c31e.tar.gz |
smjpegenc: convert to new channel layout API
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/smjpegenc.c')
-rw-r--r-- | libavformat/smjpegenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/smjpegenc.c b/libavformat/smjpegenc.c index ac5576fa76..8b40c09329 100644 --- a/libavformat/smjpegenc.c +++ b/libavformat/smjpegenc.c @@ -68,7 +68,7 @@ static int smjpeg_write_header(AVFormatContext *s) avio_wb32(pb, 8); avio_wb16(pb, par->sample_rate); avio_w8(pb, par->bits_per_coded_sample); - avio_w8(pb, par->channels); + avio_w8(pb, par->ch_layout.nb_channels); avio_wl32(pb, tag); avpriv_set_pts_info(st, 32, 1, 1000); } else if (par->codec_type == AVMEDIA_TYPE_VIDEO) { |