Fix CID 1325680.
Signed-off-by: Nicolas George <[email protected]>
---
libavfilter/af_pan.c | 2 ++
1 file changed, 2 insertions(+)
Will push this series soon unless somebody objects.
diff --git a/libavfilter/af_pan.c b/libavfilter/af_pan.c
index 9117cc0..d116818 100644
--- a/libavfilter/af_pan.c
+++ b/libavfilter/af_pan.c
@@ -239,6 +239,8 @@ static int query_formats(AVFilterContext *ctx)
// inlink supports any channel layout
layouts = ff_all_channel_counts();
+ if (!layouts)
+ return AVERROR(ENOMEM);
ff_channel_layouts_ref(layouts, &inlink->out_channel_layouts);
// outlink supports only requested output channel layout
--
2.5.3
_______________________________________________
ffmpeg-devel mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel