[FFmpeg-devel] [PATCH 160/281] uncodedframecrcenc: convert to new channel layout API
James Almer
jamrial at gmail.com
Thu Jan 13 04:00:07 EET 2022
Signed-off-by: James Almer <jamrial at gmail.com>
---
libavformat/uncodedframecrcenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/uncodedframecrcenc.c b/libavformat/uncodedframecrcenc.c
index e30fe4ddb9..1ad37071a6 100644
--- a/libavformat/uncodedframecrcenc.c
+++ b/libavformat/uncodedframecrcenc.c
@@ -79,7 +79,7 @@ static void audio_frame_cksum(AVBPrint *bp, AVFrame *frame)
int nb_planes, nb_samples, p;
const char *name;
- nb_planes = frame->channels;
+ nb_planes = frame->ch_layout.nb_channels;
nb_samples = frame->nb_samples;
if (!av_sample_fmt_is_planar(frame->format)) {
nb_samples *= nb_planes;
--
2.34.1
More information about the ffmpeg-devel
mailing list