]> git.sesse.net Git - ffmpeg/blobdiff - doc/examples/filtering_audio.c
Merge commit '1783d7ec03d730c5bd96c07bc5fa7aa566f85c66'
[ffmpeg] / doc / examples / filtering_audio.c
index 679218c82fa3592cf296fae32972bda526c111a9..9fc4f1cb7e3969d4926f14447604c384cd351e8f 100644 (file)
@@ -201,7 +201,7 @@ end:
 
 static void print_frame(const AVFrame *frame)
 {
-    const int n = frame->nb_samples * av_get_channel_layout_nb_channels(av_frame_get_channel_layout(frame));
+    const int n = frame->nb_samples * av_get_channel_layout_nb_channels(frame->channel_layout);
     const uint16_t *p     = (uint16_t*)frame->data[0];
     const uint16_t *p_end = p + n;