aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples/qsvdec.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-08-07 05:54:34 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2021-02-27 07:20:57 +0100
commit4a95c96eb76b7580e7e3b2440c33afc4cfdf4c97 (patch)
tree4bd1bab895cab3dc58222b76497ef0b199023ecf /doc/examples/qsvdec.c
parent5bc83dd89d1fa5e165f2d98ffaf403a45a2a98a3 (diff)
downloadffmpeg-4a95c96eb76b7580e7e3b2440c33afc4cfdf4c97.tar.gz
avfilter/vf_vpp_qsv: Fix leak of AVFilterFormats on error
The vpp_qsv's query_formats function allocated two AVFilterFormats, before storing them permanently. If storing the first of them fails, the function simply returns and the second leaks. This has been fixed by only allocating the second AVFilterFormats structure after the first one has been successfully stored. Fixes Coverity issue #1422231. Reviewed-by: Nicolas George <george@nsup.org> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> (cherry picked from commit c4beb0783bd2470edbcc8da9e264c7fe1c10d7cc)
Diffstat (limited to 'doc/examples/qsvdec.c')
0 files changed, 0 insertions, 0 deletions