diff options
author | James Almer <jamrial@gmail.com> | 2022-01-12 14:34:46 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2022-03-15 09:42:38 -0300 |
commit | 4b585831711b9e43ef58ca9cbcc3784ee9fb2b33 (patch) | |
tree | 23355c64cee4b49e65263624566e8c016530e81b /libavformat | |
parent | 5df73d5b4c97113ca3a20bf18393bd54588414d8 (diff) | |
download | ffmpeg-4b585831711b9e43ef58ca9cbcc3784ee9fb2b33.tar.gz |
uncodedframecrcenc: convert to new channel layout API
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/uncodedframecrcenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |