• Linjie Fu's avatar
    lavf/qsvvpp: avoid the double-free when working in sys memory mode · 6895b350
    Linjie Fu authored
    Currently, picref will be freed by calling av_frame_free(&picref) in
    submit_frame() in qsvvpp.c when working in system memory mode,and normally it
    is freed in filter_frame() in vf_vpp_qsv.c when working in other modes.
    
    Double free happens when working in system memory mode, remove to
    fix the memory issue.
    
    Reproduce:
    ffmpeg -init_hw_device qsv=foo -filter_hw_device foo -f rawvideo -pix_fmt nv12 -s:v 852x480 \
    -i 852x480.nv12 -vf 'vpp_qsv=w=500:h=400' -f rawvideo -pix_fmt nv12 qsv.nv12
    Signed-off-by: 's avatarLinjie Fu <linjie.fu@intel.com>
    Signed-off-by: 's avatarZhong Li <zhong.li@intel.com>
    6895b350
Name
Last commit
Last update
compat Loading commit data...
doc Loading commit data...
ffbuild Loading commit data...
fftools Loading commit data...
libavcodec Loading commit data...
libavdevice Loading commit data...
libavfilter Loading commit data...
libavformat Loading commit data...
libavresample Loading commit data...
libavutil Loading commit data...
libpostproc Loading commit data...
libswresample Loading commit data...
libswscale Loading commit data...
presets Loading commit data...
tests Loading commit data...
tools Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING.md Loading commit data...
COPYING.GPLv2 Loading commit data...
COPYING.GPLv3 Loading commit data...
COPYING.LGPLv2.1 Loading commit data...
COPYING.LGPLv3 Loading commit data...
CREDITS Loading commit data...
Changelog Loading commit data...
INSTALL.md Loading commit data...
LICENSE.md Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
RELEASE Loading commit data...
configure Loading commit data...