1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

uncodedframecrcenc: convert to new channel layout API

Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer 2022-01-12 14:34:46 -03:00
parent 5df73d5b4c
commit 4b58583171

View File

@ -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;