mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-27 09:52:17 +00:00
uncodedframecrcenc: convert to new channel layout API
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
5df73d5b4c
commit
4b58583171
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user