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:
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