summaryrefslogtreecommitdiff
path: root/doc/examples/filtering_audio.c
diff options
context:
space:
mode:
authorMuhammad Faiz <mfcc64@gmail.com>2017-04-22 15:58:37 +0700
committerMuhammad Faiz <mfcc64@gmail.com>2017-04-23 14:43:51 +0700
commit327a1c0dee05efff74b1fe18144a6543c44975fa (patch)
treed2477189080cc2fb6d441914cef554afadf87af9 /doc/examples/filtering_audio.c
parent8893c943a9bdbe8ed2c0f99ca986d6f662d58185 (diff)
examples: do not use AVFrame accessor
Reviewed-by: wm4 <nfxjfg@googlemail.com> Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
Diffstat (limited to 'doc/examples/filtering_audio.c')
-rw-r--r--doc/examples/filtering_audio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/examples/filtering_audio.c b/doc/examples/filtering_audio.c
index 679218c82f..9fc4f1cb7e 100644
--- a/doc/examples/filtering_audio.c
+++ b/doc/examples/filtering_audio.c
@@ -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;