OSDN Git Service

avfilter/all: propagate errors of functions from avfilter/formats
authorGanesh Ajjanagadde <gajjanagadde@gmail.com>
Mon, 5 Oct 2015 03:39:25 +0000 (23:39 -0400)
committerGanesh Ajjanagadde <gajjanagadde@gmail.com>
Wed, 14 Oct 2015 14:04:01 +0000 (10:04 -0400)
commit6aaac24d72a7da631173209841a3944fcb4a3309
tree4b475e1648073cd36acad767e54486722ac3c15f
parent8ededd583622359062622cf008144a1511d50bbd
avfilter/all: propagate errors of functions from avfilter/formats

Many of the functions from avfilter/formats can return errors, usually AVERROR(ENOMEM).
This propagates the return values.

All of these were found by using av_warn_unused_result, demonstrating its utility.

Tested with FATE. I am least sure of the changes to avfilter/filtergraph,
since I don't know what/how reduce_format is intended to behave and how it should
react to errors.

Fixes: CID 132568013256791325678.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Previous version Reviewed-by: Nicolas George <george@nsup.org>
Previous version Reviewed-by: Clément Bœsch <u@pkh.me>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
63 files changed:
libavfilter/aeval.c
libavfilter/af_aformat.c
libavfilter/af_agate.c
libavfilter/af_amerge.c
libavfilter/af_amix.c
libavfilter/af_aresample.c
libavfilter/af_astreamsync.c
libavfilter/af_channelmap.c
libavfilter/af_channelsplit.c
libavfilter/af_earwax.c
libavfilter/af_extrastereo.c
libavfilter/af_join.c
libavfilter/af_pan.c
libavfilter/af_replaygain.c
libavfilter/af_resample.c
libavfilter/af_sidechaincompress.c
libavfilter/af_stereotools.c
libavfilter/af_stereowiden.c
libavfilter/asrc_anullsrc.c
libavfilter/asrc_flite.c
libavfilter/avf_aphasemeter.c
libavfilter/avf_avectorscope.c
libavfilter/avf_concat.c
libavfilter/avf_showcqt.c
libavfilter/avf_showfreqs.c
libavfilter/avf_showspectrum.c
libavfilter/avf_showvolume.c
libavfilter/avf_showwaves.c
libavfilter/avfiltergraph.c
libavfilter/buffersink.c
libavfilter/buffersrc.c
libavfilter/drawutils.c
libavfilter/f_drawgraph.c
libavfilter/f_ebur128.c
libavfilter/formats.c
libavfilter/src_movie.c
libavfilter/vf_alphamerge.c
libavfilter/vf_boxblur.c
libavfilter/vf_crop.c
libavfilter/vf_detelecine.c
libavfilter/vf_displace.c
libavfilter/vf_elbg.c
libavfilter/vf_extractplanes.c
libavfilter/vf_fieldorder.c
libavfilter/vf_frei0r.c
libavfilter/vf_hflip.c
libavfilter/vf_histogram.c
libavfilter/vf_il.c
libavfilter/vf_maskedmerge.c
libavfilter/vf_mergeplanes.c
libavfilter/vf_neighbor.c
libavfilter/vf_noise.c
libavfilter/vf_overlay.c
libavfilter/vf_palettegen.c
libavfilter/vf_paletteuse.c
libavfilter/vf_scale.c
libavfilter/vf_showpalette.c
libavfilter/vf_stack.c
libavfilter/vf_swapuv.c
libavfilter/vf_telecine.c
libavfilter/vf_transpose.c
libavfilter/vf_vectorscope.c
libavfilter/vsrc_life.c