avfilter/formats: proper error handling in ff_channel_layouts_ref() and ff_formats_ref()
authorClément Bœsch <u@pkh.me>
Sat, 14 Mar 2015 20:21:49 +0000 (21:21 +0100)
committerClément Bœsch <u@pkh.me>
Mon, 16 Mar 2015 22:43:12 +0000 (23:43 +0100)
commitf861d9b2c64752b134d49cb9e790b77221c381c1
treec6f43bc92e459df9698976679525333a5f1a6a84
parent93d9ce7cec48a4c6478bba4383613fca3f28740a
avfilter/formats: proper error handling in ff_channel_layouts_ref() and ff_formats_ref()

Also make sure the allocation and its check are properly done.
libavfilter/formats.c
libavfilter/formats.h