summaryrefslogtreecommitdiff
path: root/libavfilter/framepool.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavfilter/framepool.c')
-rw-r--r--libavfilter/framepool.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavfilter/framepool.c b/libavfilter/framepool.c
index 1990902666..0404589055 100644
--- a/libavfilter/framepool.c
+++ b/libavfilter/framepool.c
@@ -234,7 +234,12 @@ AVFrame *ff_frame_pool_get(FFFramePool *pool)
break;
case AVMEDIA_TYPE_AUDIO:
frame->nb_samples = pool->nb_samples;
+#if FF_API_OLD_CHANNEL_LAYOUT
+FF_DISABLE_DEPRECATION_WARNINGS
frame->channels = pool->channels;
+FF_ENABLE_DEPRECATION_WARNINGS
+#endif
+ frame->ch_layout.nb_channels = pool->channels;
frame->format = pool->format;
frame->linesize[0] = pool->linesize[0];