diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-03-17 14:08:59 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-03-17 15:05:20 +0100 |
commit | 814f806e0630e5338ad0d04e24777daceafa862b (patch) | |
tree | 23822e6d1173fb5581cfd8a8801851bf0f058f93 | |
parent | 242c07982ad523b2e0f928a204a6f2d293a956d7 (diff) | |
download | ffmpeg-814f806e0630e5338ad0d04e24777daceafa862b.tar.gz |
avformat/imfdec: Convert to the new channel layout API
Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r-- | libavformat/imfdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/imfdec.c b/libavformat/imfdec.c index 3ce850b75a..9ec52efbc8 100644 --- a/libavformat/imfdec.c +++ b/libavformat/imfdec.c @@ -874,7 +874,7 @@ static int imf_read_packet(AVFormatContext *s, AVPacket *pkt) int64_t nbsamples = av_rescale_q(pkt->duration, st->time_base, av_make_q(1, st->codecpar->sample_rate)); - av_shrink_packet(pkt, nbsamples * st->codecpar->channels * bytes_per_sample); + av_shrink_packet(pkt, nbsamples * st->codecpar->ch_layout.nb_channels * bytes_per_sample); } else { /* in all other cases, use side data to skip samples */ |