diff options
Diffstat (limited to 'libavfilter/f_graphmonitor.c')
-rw-r--r-- | libavfilter/f_graphmonitor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/f_graphmonitor.c b/libavfilter/f_graphmonitor.c index 9cc5ea940e..7360a7f760 100644 --- a/libavfilter/f_graphmonitor.c +++ b/libavfilter/f_graphmonitor.c @@ -226,7 +226,7 @@ static int draw_items(AVFilterContext *ctx, AVFrame *out, if (l->type == AVMEDIA_TYPE_VIDEO) { snprintf(buffer, sizeof(buffer)-1, " | size: %dx%d", l->w, l->h); } else if (l->type == AVMEDIA_TYPE_AUDIO) { - snprintf(buffer, sizeof(buffer)-1, " | channels: %d", l->channels); + snprintf(buffer, sizeof(buffer)-1, " | channels: %d", l->ch_layout.nb_channels); } drawtext(out, xpos, ypos, buffer, s->white); xpos += strlen(buffer) * 8; |