X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavfilter%2Fformats.c;h=214718b77911ddf08895e83c2495d88f66907d6a;hb=3c3daf4d198306295e3342631f19422bdc258dbb;hp=b6e30e7ab4f1941d2d637d7c3e86c6b8c3f1ea19;hpb=7464a53aaa5a241858ffbcb0194d3fc44a7aa441;p=ffmpeg diff --git a/libavfilter/formats.c b/libavfilter/formats.c index b6e30e7ab4f..214718b7791 100644 --- a/libavfilter/formats.c +++ b/libavfilter/formats.c @@ -173,6 +173,17 @@ AVFilterFormats *avfilter_all_channel_layouts(void) return avfilter_make_format64_list(chlayouts); } +AVFilterFormats *avfilter_all_packing_formats(void) +{ + static int packing[] = { + AVFILTER_PACKED, + AVFILTER_PLANAR, + -1, + }; + + return avfilter_make_format_list(packing); +} + void avfilter_formats_ref(AVFilterFormats *f, AVFilterFormats **ref) { *ref = f;