examples/qsvdec: free the lavc decoder before closing MFX/VAAPI